Skip to content

Instantly share code, notes, and snippets.

@thcipriani
Created January 13, 2015 00:20
Show Gist options
  • Save thcipriani/d16767a4732d3bd574b1 to your computer and use it in GitHub Desktop.
Save thcipriani/d16767a4732d3bd574b1 to your computer and use it in GitHub Desktop.
the matasano crypto challenges
#!/usr/bin/env python
def hex_to_base64(thing):
return thing.decode('hex').encode('base64')
print hex_to_base64('49276d206b696c6c696e6720796f757220627261696e206c696b65206120706f69736f6e6f7573206d757368726f6f6d')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment