Skip to content

Instantly share code, notes, and snippets.

@mikeecb
Last active August 18, 2020 22:20
Show Gist options
  • Save mikeecb/123d90d36fec2939f015d7552c10f4b4 to your computer and use it in GitHub Desktop.
Save mikeecb/123d90d36fec2939f015d7552c10f4b4 to your computer and use it in GitHub Desktop.
Cryptopals Challenge Set 1 Exercise 1
hex_str = "49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d"
decoded = hex_str.decode("hex")
# I'm killing your brain like a poisonous mushroom
base64_str = decoded.encode("base64")
# SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlIGEgcG9pc29ub3VzIG11c2hyb29t\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment