Skip to content

Latest commit

 

History

History
30 lines (23 loc) · 976 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 976 Bytes

ChaCha20 Cipher

This is a ChaCha20 cipher implementation in Python.

I have tried two different ways to optimize the code and get a faster run:

  1. Regular: This is the unoptimized version of the code -- slow.
  2. 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:

Usage

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