This program is an implementation of the Mini-AES published in Cryptologia by Raphael Chung-Wei Phan in 2002.
Mini-AES has parameters significantly reduced while preserving its original structure. It is meant to be a purely educational cipher and is not secure for actual applications. Mini-AES encrypts files in blocks of 16 bits (2 bytes) and the secret key has the same size.
gcc encrypt.c fun.c -o encrypt.out
./encrypt.out source.pdf encrypted_file
gcc decrypt.c fun.c -o decrypt.out
./decrypt.out encrypted_file recovered_file.pdf
- C99
- C11
- C17 or more