from Crypto.Cipher import DES
obj = DES.new('abcdefgh', DES.MODE_ECB)
plain = 'Guido van Rossum is a space alien.'
len(plain)
obj.encrypt(plain)
ciph = obj.encrypt(plain + 'XXXXXX')
ciph
obj.decrypt(ciph)
simple encrypt/decrypt lib in python with private key