AES in JavaScript

Here isĀ  a JavaScript implementation of the AES block cipher that I found at Stack Overflow.

I was interested in this script, so I wrote a small test below. Note, it is generally not a good idea to use JavaScript for security. So this is more of an academic exercise and/or a debugging tool.

First, enter a 128, 192, or 256 bit key, or create random key with 128, 192, or 256 bits. Format each byte of the key as two hexadecimal characters.

Next, type some plain text, or use some sample text.