F
Frank Uray
Hi all
I am trying to build two functions (EncryptString and DecryptString).
I would like to use the highest possible security (SHA512Managed ?).
I have found the following code:
System.Security.Cryptography.SHA512Managed HashTool = new
System.Security.Cryptography.SHA512Managed();
Byte[] PasswordAsByte =
System.Text.Encoding.UTF8.GetBytes(string.Concat(Password, Salt));
Byte[] EncryptedBytes = HashTool.ComputeHash(PasswordAsByte);
HashTool.Clear();
return Convert.ToBase64String(EncryptedBytes);
How can I decrypt a string encypted with the above code ??
Or are the better methods ?
Thanks for your help.
Best regards
Frank Uray
I am trying to build two functions (EncryptString and DecryptString).
I would like to use the highest possible security (SHA512Managed ?).
I have found the following code:
System.Security.Cryptography.SHA512Managed HashTool = new
System.Security.Cryptography.SHA512Managed();
Byte[] PasswordAsByte =
System.Text.Encoding.UTF8.GetBytes(string.Concat(Password, Salt));
Byte[] EncryptedBytes = HashTool.ComputeHash(PasswordAsByte);
HashTool.Clear();
return Convert.ToBase64String(EncryptedBytes);
How can I decrypt a string encypted with the above code ??
Or are the better methods ?
Thanks for your help.
Best regards
Frank Uray