Table of Contents

AES / Rijndael

Chris Veness has written a JavaScript implementation of AES in counter operation mode some time ago. I wrapped the code up into a class for easier use.

Download it here: aes.class.js (18.25 KiB, 62 downloads)

Usage

var text = 'Hello, world!';
var password = 'itsmysecret';
var blocksize = 256;   // can be 128, 192 or 256
 
var crypted = AES.encrypt( text, password, blocksize );
// do something...
var decrypted = AES.decrypt( crypted, password, blocksize );

See Also


 
snippets/javascript/aes-rijndael.txt · Last modified: 2009-08-12 09:50.00 by mbirth
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki Contents powered by Club-Mate Contents powered by BassDrive.com Labelled with ICRA