简体   繁体   中英

encryption in javascript and decryption in Ruby

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?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM