ch10: Update hashlib excerpt for Python 3

pull/829/head^2
Will Binns 3 years ago
parent 65bd520926
commit d10161ab82
No known key found for this signature in database
GPG Key ID: 302EBEAEEB74A404

@ -431,10 +431,10 @@ $ python
----
[source,pycon]
----
Python 2.7.1
Python 3.7.3
>>> import hashlib
>>> print hashlib.sha256("I am Satoshi Nakamoto").hexdigest()
5d7c7ba21cbbcd75d14800b100252d5b428e5b1213d27c385bc141ca6b47989e
>>> hashlib.sha256(b"I am Satoshi Nakamoto").hexdigest()
'5d7c7ba21cbbcd75d14800b100252d5b428e5b1213d27c385bc141ca6b47989e'
----
====

Loading…
Cancel
Save