Skip to content

Instantly share code, notes, and snippets.

@AndyNovo AndyNovo/encrypted.txt Secret
Created Mar 27, 2019

Embed
What would you like to do?
babd0e89ff8ff4a32e29575c00162f4a98ac4692b097ffa33824125c005a3d1588ae4785f58de4af7a355a4e11163a5481f84384fec3f1f13f61515d00572f5d89f84b90e582fcaf7a355a4e11162f5088a10e80e286b0e634255d58005277188fa10e95f886f9f17a02404a0442344ac1f85988e48bb0e03f33464e0c587b4d83b94288f58df1e13624127d0c51334c9ef40e95f882e4a33b2c5d4102162f5088ab4bc1f191f5a31628544a491617518fbd5c95e9cfb0e23425125b0d537b4898aa5d94f997b0ec3c617a4e1546325688ab5dcfb08df9ed3020496b2065147eaf8746d5e3bce7b06e2a6d44004f2845
from Crypto.Cipher import DES
from secret import key, plaintext
iv = 'ZA2/e6[8'
cipher = DES.new(key, DES.MODE_OFB, iv)
ciphertext = cipher.encrypt(plaintext)
f=file('encrypted.txt','w')
f.write(ciphertext.encode('hex'))
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.