Skip to content

wojtazk/cpp-aes

Repository files navigation

Advanced Encryption Algorithm with 128-bit key

my implementation of AES in C++

Info

word size: 32 bit
key length: 128 bit -> 4 words
block size: 128 bit -> 4 words
number of rounds: 10

Usage

Note

The program will ask you to enter the key
The key in my implementation is kind of like a password provided by user

If the string provided by user is too long -> only first 16 bytes are treated as a key
If it is too short -> the remaining bytes are filled with '0'

Encryption

./cpp-aes -e input_file output_file

Decryption

./cpp-aes -d input_file output_file

Usage Example

image

Resources