Example #1
0
        static public bool ConvertPasswordToSha512(User registerUser)
        {
            bool   bConvertPasswordResult = false;
            string hashPasswordString     = string.Empty;
            string passwordString         = registerUser.Password;

            if (passwordString.Length > 0)
            {
                hashPasswordString = Sha512Manager.ComputeHashString(registerUser.Password);

                if (hashPasswordString.Length > 0)
                {
                    registerUser.Password  = hashPasswordString;
                    bConvertPasswordResult = true;
                }
            }

            return(bConvertPasswordResult);
        }
Example #2
0
 static public string ConvertInputTextToSha512(string inputTextString)
 {
     return(Sha512Manager.ComputeHashString(inputTextString));
 }