Hashing file in Python 3?

前端 未结 3 1105
慢半拍i
慢半拍i 2021-01-18 14:08

In Python 2, one could hash a string by just running:

someText = \"a\"
hashlib.sha256(someText).hexdigest()

But in Python 3, it needs to be

3条回答
提交回复
热议问题