AoC.Questionnaire.Extensions.Hash C# (CSharp) 메소드

Hash() 공개 정적인 메소드

public static Hash ( this clear_text ) : string
clear_text this
리턴 string
        public static string Hash(this string clear_text)
        {
            using (HashAlgorithm hash = new SHA256CryptoServiceProvider())
            {
                return Convert.ToBase64String(hash.ComputeHash(Encoding.UTF8.GetBytes(clear_text)));
            }
        }