This is a ChaCha20 cipher implementation in Python.
I have tried two different ways to optimize the code and get a faster run:
- Regular: This is the unoptimized version of the code -- slow.
- Parallelized and Numba: This version uses parallelization thorugh multiprocessing and Numba, a JIT compiler that translates a subset of Python and NumPy code into fast machine code -- faster.
Learn more about ChaCha20:
python encrypt_decrypt.py [-h] (-e | -d) input_file output_file
positional arguments:
input_file
output_file
optional arguments:
-h, --help usage message and exit
-e, --encrypt
-d, --decrypt