Fast and slim Javascript implementation of AES in ECB and CTR modes
OTHER License
##aes-js
A fast and super-slim Javascript implementation of AES in ECB and CTR modes.
###Warning
If you are looking for a generic AES encryption library, this is probably not what you are looking for. If you do not have a good reason for using ECB or CTR, or if you don't know what that means, do not use this library. Instead, use the SJCL library and the AES-CCM mode of operation.
###Features
###Usage
ECB mode
var key = AES.Codec.strToWords("a non secret key"),
block = AES.Codec.strToWords("a non secret msg");
cipher = new AES.ECB(key);
cipher.encrypt(block);
CTR mode
var key = AES.Codec.strToWords("a non secret key"),
iv = AES.Codec.strToWords("a non secret iv"),
block = AES.Codec.strToWords("a non secret msg");
cipher = new AES.CTR(key, iv);
cipher.encrypt(block);
###License
This code is licensed under the BSD license. Most of the code comes from the SJCL implementation of AES, which is (c) Emily Stark, Mike Hamburg, Dan Boneh, Stanford University 2008-2010 and BSD-licensed.