string s = "abc";
byte[] data = Encoding.Unicode.GetBytes(s);
SHA1 algorithm = SHA1.Create();
byte[] hash = algorithm.ComputeHash(data);
string base64 = Convert.ToBase64String(hash);
Converting Plaintext from a text box to SHA1 Then Sha1 to base 64 C#
문제
Ok i want to generate a sha1 hash from plaintext textbox then convert the hash to base64 to store in a mysql database how do i do it?
해결책
제휴하지 않습니다 StackOverflow