Author: rajivkalra | Posted on: 12/12/2009 1:05:52 AM | Views : 284

private static string GetSHA512(string strPlain)
        {
            UnicodeEncoding UE = new UnicodeEncoding();
            byte[] HashValue, MessageBytes = UE.GetBytes(strPlain);
            SHA512Managed SHhash = new SHA512Managed();
            string strHex = "";

            HashValue = SHhash.ComputeHash(MessageBytes);


            foreach (byte b in HashValue)
            {
                strHex += String.Format(&quo ...

Go to the complete details ...