Created
November 20, 2015 19:14
-
-
Save packetchef/b2a071e2e9c1c58814fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Encode ASCII to hex | |
'password'.encode("hex") | |
# Decode hex to ASCII | |
'70617373776f7264'.decode("hex") | |
# >>> '\x70\x61\x73\x73\x77\x6f\x72\x64' | |
# 'password' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment