Is it possible to have email addresses encrypted in ApplicationServices DB?

我怕爱的太早我们不能终老 提交于 2019-12-05 08:24:13

I would create a custom provider and just add the small amount of code to encrypt the email address.

they released source for the ASP.net Provider

http://weblogs.asp.net/scottgu/archive/2006/04/13/442772.aspx

if you download the ProviderToolkitSamples.msi

Use the SQLMembershipProvider.cs for the membership provider on line 366 it is storing the email address you can encrypt it before calling the insert stored procedure.

you will also need to decrypt it when retrieving it from the DB as well .

Here is a good article on Encryption I would make sure you include a Salt with the email address so that it is more secure.

http://hectorcorrea.com/blog/Encrypt-and-Decrypt-a-string-in-C-Sharp

Hope that helps!

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!