简体   繁体   English

在MySQL数据库中存储数百封已加密的电子邮件?

[英]Store hundreds of emails in MySQL database encrypted?

I need to store large number of emails in a MySQL database for mailing list management. 我需要在MySQL数据库中存储大量电子邮件以进行邮件列表管理。

I would like to store these emails encrypted with Ruby on Rails making the storage safer. 我想存储这些使用Ruby on Rails加密的电子邮件,从而使存储更加安全。

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. 我已经在使用Devise Gem,并且他们使用某种盐和密钥进行解密。

Any thoughts on how this could be implemented best? 关于如何最好地实现这一点的任何想法?

You could encrypt the email column in your MySQL database. 您可以加密MySQL数据库中的email列。 You don't need SALT for encryption; 您不需要SALT进行加密; it is only useful when it's used by hash functions. 仅在哈希函数使用它时才有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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