Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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')))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement