Last active
May 25, 2016 02:51
-
-
Save cotocisternas/8ea4e89b02743fc21068672035ef7b4b to your computer and use it in GitHub Desktop.
Python Aut Enc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from Crypto.Cipher import DES | |
import base64 | |
key = 'hello'.ljust(8, '\x00') | |
txt = 'hello'.ljust(64, '\x00') | |
des = DES.new(key, DES.MODE_ECB) | |
str = des.encrypt(txt) | |
base64.b64encode(str) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment