I want to generate the hash code from a string,e.g."咖啡" ,but the hashcode I get from python and c# is different,the one from python is what I want
c#
Code:
String str = "咖啡"; MD5 m = MD5.Create(); byte[] data = m.ComputeHash(Encoding.Default.GetBytes(str)); StringBuilder sbuilder = new StringBuilder(); for(int i=0;i<data.Length;i++){
Leave a comment: