cryptAES/main.py
2021-09-20 16:47:10 +02:00

18 lines
309 B
Python

from crypt import *
from Crypto.Random import get_random_bytes
from compress import *
key = get_random_bytes(32) # 32 bytes * 8 = 256 bits (1 byte = 8 bits)
print(key)
file = "original_file.txt"
cfile = file+'.enc'
encrypt_file(key, file, cfile)
decrypt_file(key, cfile)
rootdir="test"
recurse(rootdir)