Skip to content
forked from faf0/AES.jl

AES implementation in Julia. Supports 128-bit, 192-bit, and 256-bit keys and several cipher modes of operation.

License

Notifications You must be signed in to change notification settings

abelsiqueira/AES.jl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AES Implementation in Julia

This package implements the Advanced Encryption Standard (AES) cipher in Julia. It supports 128-bit, 192-bit, and 256-bit keys. Note that the implementation is not optimized with regard to performance or resistance to timing attacks.

This package also allows to use AES in the following block cipher modes of operation:

  • ECB (Electronic codebook)
  • CBC (Cipher-block chaining)
  • CFB (Cipher feedback)
  • OFB (Output feedback)
  • CTR (Counter)

Installation

Use Pkg.clone with the corresponding URL in Julia to install this package.

Example Usage

The following code shows how to use AES in OFB mode for encryption.

using AES
key = rand(Uint8, div(256, 8))
iv = rand(Uint8, 16)
plaintext = rand(Uint8, 3 * 16)
AESOFB(plaintext, key, iv)

More examples can be found in test/runtests.jl.

Contact

Feel free to report any bugs and to send pull requests.

About

AES implementation in Julia. Supports 128-bit, 192-bit, and 256-bit keys and several cipher modes of operation.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Julia 100.0%