Reputation: 407
i need to encrypt a string in a client using javascript and need to decrypt it in a Ruby on Rails Server.
i want to use AES.
What are the best couple of script/library/method to do this?
Upvotes: 0
Views: 814
Reputation: 11372
Think hard about what exactly you need to do this for.
If you need to ensure that the data from your page that the user has input is transmitted securely to the server without being interceptable and decryptable on the way through and you want to be confident about doing that, then the obvious, well tested and well maintained way of doing that is to use HTTPS for your communications.
If you want to do AES on your page for giggles, then this question covers AES on the client and Ruby can talk to OpenSSL pretty easily on the server.
Upvotes: 1