Timeline for About performing SHA-256 hashing on the public key
Current License: CC BY-SA 3.0
8 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 8, 2015 at 15:58 | comment | added | Wizard Of Ozzie |
import codecs , then codecs.encode(codecs.decode("abcdef".encode("utf-8"), "hex")[::-1], "hex").decode() ... It's quite counterintuitive IMO, as I'm so used to Python 2.7
|
|
Apr 8, 2015 at 15:50 | history | edited | JohnDvorak | CC BY-SA 3.0 |
specified Python 2
|
Apr 8, 2015 at 15:49 | comment | added | JohnDvorak | Good point. I'm not sure how to write the code so it's compatible with Python 3 ("string".encode('hex') is replaced), so unless you do I'll just specify Python 2 here. | |
Apr 8, 2015 at 15:43 | comment | added | Wizard Of Ozzie |
Yep, that's tripped me up too. You'll need to use bytes objects - b"hexData" - for Python 3.x
|
|
Apr 6, 2015 at 22:06 | history | edited | Nick ODell | CC BY-SA 3.0 |
added 30 characters in body
|
Apr 6, 2015 at 21:10 | vote | accept | moshaholo | ||
Apr 6, 2015 at 20:51 | history | edited | JohnDvorak | CC BY-SA 3.0 |
formatted the code snippet.
|
Apr 6, 2015 at 20:42 | history | answered | JohnDvorak | CC BY-SA 3.0 |