AES implemented in Javascrypt! I'll forgive the pun because the code is so useful :) Granted, the global variables are a PITA, and it uses the DOM tree to parametize the whole operation, but it was at least hackable. Consequently, you can take the whole 'encryption' folder from Identikey as a drop-in library.

See also : Javascrypt.