Python 3的代碼: def md5hex(data):
""" return hex string of md5 of the given string """
h = MD5.new()
h.update(data.encode('utf-8'))
return b2a_hex(h.digest()).decode('utf-8')
的Pytho
這裏匹配是.NET public string GetMD5Hash(string name) {
MD5 md5 = new MD5CryptoServiceProvider();
byte[] ba = md5.ComputeHash(Encoding.UTF8.GetBytes(name));
StringBuilder hex = new StringBuil