File encryption with XOR-Cipher in Python.
$ python3 xor.py <infile> <outfile>
or
$ python3 xor.py <infile> <outfile> --key <password>
- infile is a file path to be encrypted.
- outfile is a encrypted file path.
- password is a encryption password.
If you use docker,
$ docker run --rm -v $(pwd):/mnt -it mmktomato/python-xor-cipher <infile> <outfile>
or
$ docker run --rm -v $(pwd):/mnt mmktomato/python-xor-cipher <infile> <outfile> --key <password>
Note that you have to use -it
if you don't specify --key <password>
.