简体   繁体   中英

Store hundreds of emails in MySQL database encrypted?

I need to store large number of emails in a MySQL database for mailing list management.

I would like to store these emails encrypted with Ruby on Rails making the storage safer.

What would be the options to encrypt email addresses with the option to decrypt them also?

Im already using Devise Gem and they use some sort of salt and key to decrypt.

Any thoughts on how this could be implemented best?

You could encrypt the email column in your MySQL database. You don't need SALT for encryption; it is only useful when it's used by hash functions.

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