SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 MD5 encryption
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ekaiser
Starting Member

USA
1 Posts

Posted - 02/13/2013 :  11:23:32  Show Profile  Reply with Quote
I have a table that contains thousands of rows of emails. I want to create another field on my table that has a MD5 encrypted version of the email field. so end result would be 2 fields ,
1 = original email and
2 = new field containing MD5 hash version of first field.

djj55
Constraint Violating Yak Guru

USA
320 Posts

Posted - 02/13/2013 :  11:50:53  Show Profile  Reply with Quote
See if "HASHBYTES" is what you are looking for.

djj
Go to Top of Page

robvolk
Most Valuable Yak

USA
15663 Posts

Posted - 02/13/2013 :  16:35:08  Show Profile  Visit robvolk's Homepage  Reply with Quote
Keep in mind HASHBYTES only hashes the first 8000 bytes of input, so similar email messages could end up with the same hash.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.14 seconds. Powered By: Snitz Forums 2000