Is there a easy-used two-way encryption method for string in ruby?
2 Answers
This article discusses someone who wrapped RSA encryption and decryption in Ruby. As I do not speak the language I cannot attest to its usefulness, but I couldn't let the Base64 answer go unchallenged.
Public-key cryptography of any kind is going to be the best solution, depending on what you're after. The user can be completely unaware of its existence if you do it right.
Looks like the openssl module (gem?) is a place to start.
Comments
3 Comments
Gustav Paul
Upon re-reading your question it seems like I misunderstood...leaving my answer just in case this really is what you were looking for.
Macario
base64 is not encryption is encoding.
Joe Edgar
I would like to reiterate, that base64 is NOT encryption and it is NOT safe to send/store data this way that you don't want read. This answer should probably be deleted.