Skip to content

Instantly share code, notes, and snippets.

@zodman
Created July 6, 2012 17:38
Show Gist options
  • Save zodman/3061531 to your computer and use it in GitHub Desktop.
Save zodman/3061531 to your computer and use it in GitHub Desktop.
a = AES.new("1234567890123456",AES.MODE_CBC,'This is an IV456')
In [22]: sixteenize("andres")
Out[22]: 'andres '
d= a.encrypt(sixteenize("andres"))
In [21]: base64.encodestring(d)
Out[21]: 'DnFT1bUDaLP7Y+8jgljWcQ==\n'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment