Hashing in Python - Web Development

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

if there are people out there like me who are watching this video and using python 3, then please encode the string (foo) before hashing it.

TypeError: Unicode-objects must be encoded before hashing
x = 'foo'.encode('utf-8')
x = hashlib.md5(x)
x.hexdigest()

udacity please update the videos.

rickysingh