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:
In the Julia shell, switch to the pkg environment by pressing ]
.
In the package environment, run add
with the URL of this repository as the only parameter.
Alternatively, clone this repository and run add .
in the package environment.
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
.
Feel free to report any bugs and to send pull requests.
01/04/2015
3 months ago
17 commits