from Crypto import * f = open('My_Key.txt', 'r') key = f.read(8) f.close() pCr = Crypto() pCr.SetKey(key) infile = open('Secret.enc', 'r') outfile = open('Answer.txt', 'w') for line in infile: decrptLine = pCr.UnEncrypt(line) print(decrptLine.strip()) outfile.write(decrptLine) infile.close() outfile.close()
from Crypto import * p = Crypto() (p.SetKey('0d48fa23')) print(p.UnEncrypt('9d729be7')) key1 = p.GenerateKey() key2 = p.GenerateKey() key3 = p.GenerateKey() print (key1) print (key2) print (key3)