Created
February 23, 2018 22:10
-
-
Save thatguyintech/af7476bd1a2ac3c053ce6292590192aa 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
import binascii | |
hex_string = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d" | |
hex_bytes = hex_string.decode("hex") | |
base_64_string = binascii.b2a_base64(hex_bytes)[:-1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment