예제 #1
0
        public string HashPassword(string password)
        {
            var count = IterationCount;

            if (count <= 0)
            {
                count = GetIterationsFromYear(GetCurrentYear());
            }
            var result = CryptographyUtility.HashPassword(password, count);

            return(EncodeIterations(count) + PasswordHashingIterationCountSeparator + result);
        }