in reply to encrypt / decrypt?

If you wanted to do the encryption on the client side, you could use dojo http://www.dojotoolkit.org/book/dojo-book-0-9/part-5-dojox/dojox-cryptography

And then on the server side use a perl module of the same flavor cypher