jsaes: AES in JavaScript

jsaes is a compact JavaScript implementation of the AES block cipher. Key lengths of 128, 192 and 256 bits are supported.

Example

The following code example enciphers the plaintext block '00 11 22 .. EE FF' with the 256 bit key '00 01 02 .. 1E 1F'.

AES_Init();

var block = new Array(16);
for(var i = 0; i < 16; i++)
  block[i] = 0x11 * i;

var key = new Array(32);
for(var i = 0; i < 32; i++)
  key[i] = i;

AES_ExpandKey(key);
AES_Encrypt(block, key);

AES_Done();

Download

jsaes is free software, written in 2006 by B. Poettering. The code is licensed under the GNU GPL. The well-functioning of the encryption/decryption routines has been verified for different key lengths with the test vectors given in FIPS-197, Appendix C.

Download jsaes-0.1.tar.gz (SHA1: c1b7407ad8a79c3095f192fd103747f3c4de1865).
Or view the current version directly.

The code is well documented and the API trivial. Therefore there are no further docs at the moment.

New versions are announced via the freshmeat page.

Final notices

jssha256, ssss: Shamir's Secret Sharing Scheme and seccure are other crypto software projects by the same author.


The text of this page is licensed under the GNU General Public License. Copyright 2006 by B. Poettering (jsaes AT point-at-infinity.org).
Last modified: Fri Sep 29 20:20:29 CEST 2006