Does mysql provide a mechanism for storing and receiving encrypted data? I do not mean passwords, I mean real lines.
I would like to encrypt the string, save in mysql and then get the decrypted string later.
So, I know that there are AES_Encrypt and decrypt functions. But they ask for the key. (this is normal), but I wonder if you call these functions and use your user password as a key. Or something else super simple.
Also, is there a simple wrapper for AES_Encrypt and decryption functions in Rails? Or do you need to create a query manually?
source share