Answers for "python hash md5 unicode"

0

python hash md5 unicode

>>>from hashlib import md5 #this is just an example
>>>uFoo=u"why dòn't ìnsért sòme strànge chàrs? ù.ù"
>>>md5( uFoo.encode("utf-8") ).hexdigest()
'80a0d8c0e0a53e2e3a9edafa4f0b2c03'
Posted by: Guest on September-10-2020

Python Answers by Framework

Browse Popular Code Answers by Language