Skip to content

Instantly share code, notes, and snippets.

/ruby.rb Secret

Created May 25, 2016 02:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/96bae068016ecce928b40edde4c1b59d to your computer and use it in GitHub Desktop.
Save anonymous/96bae068016ecce928b40edde4c1b59d to your computer and use it in GitHub Desktop.
from Crypto.Cipher import DES
import base64
des = DES.new('hello'.ljust(8, '\x00'), DES.MODE_ECB)
str = base64.b64encode(des.encrypt("hello".ljust(64, '\x00')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment