Skip to content
/ aes256 Public
forked from alambley/aes256

An aes256 implementation in C

Notifications You must be signed in to change notification settings

techsd/aes256

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

aes256

An aes256 implementation in C that I wrote following along with the NIST FIPS 197 document for some C practice and to understand AES256.

build

gcc *.c -w -g -lm -o aes256

usage

./aes256 -ecb [Message to encrypt] [256 bit key in 02x hex] Encrypt data using AES256-ECB

./aes256 -cbc [Message to encrypt] [256 bit key in 02x hex] [128 bit iv in 02x hex] Encrypt data using AES256-CBC

./aes256 -ctr [Message to encrypt] [256 bit key in 02x hex] [128 bit iv in 02x hex] Encrypt data using AES256-CTR

note

If the data and key from the command line didn't tip you off, don't use this for anything that you actually want to encrypt. This implementation was an educational exercise and is slow, probably naive, and vulnerable to all of the cryptographic no-nos. Use OpenSSL for a fast, free, open-source, and infinitely more secure encryption option.

About

An aes256 implementation in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%