 <p>For a more complete example that performs key derivation in addition to the AES encryption, see the answer and links posted in <a href="http://stackoverflow.com/questions/1149611/getting-slowaes-and-rijndaelmanaged-class-in-net-to-play-together">Getting AES encryption to work across Javascript and C#</a>. </p> <p><strong>EDIT</strong><br> a side note: <a href="http://www.matasano.com/articles/javascript-cryptography/" rel="nofollow noreferrer">Javascript Cryptography considered harmful.</a> Worth the read.</p>