Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- md5("apple", true) //result :8pѕ'OlIігg(•
- byte[] asciiBytes = ASCIIEncoding.ASCII.GetBytes("apple");
- byte[] hashedBytes = MD5CryptoServiceProvider.Create().ComputeHash(asciiBytes);
- return System.Text.Encoding.ASCII.GetString(hashedBytes); //result: 8p?'OlI??g(?
- var md5 = System.Security.Cryptography.MD5.Create();
- byte[] inputBytes = Encoding.Default.GetBytes(input);
- byte[] hash = md5.ComputeHash(inputBytes);
- var s = Encoding.Default.GetString(hash);
Add Comment
Please, Sign In to add comment