asscryption
Proof-of-concept random key-based text transformer.
Usage
Encrypt
python main.py encrypt <filein> <target> [--seed SEED] > keyfile
filein: Input text file (plaintext)target: Target text file (what you want to transform to)--seed: (Optional) Random seed for reproducibilitykeyfile: Output key file (redirect stdout)
Decrypt
python main.py decrypt <filein> <keyfile>
filein: Input text file (should match the input used in encrypt)keyfile: Key file produced during encryption
Example
python main.py encrypt message.txt target.txt --seed 42 > mykey.txt
python main.py decrypt message.txt mykey.txt > reconstructed_target.txt
NOTE: This is a proof-of-concept. The "key" is printed to stdout during encryption. The target file must exist.
Version 1
Languages
Python
100%