Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

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

Starting Member

3 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.

Constraint Violating Yak Guru

352 Posts

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

Go to Top of Page

Most Valuable Yak

15732 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  
 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.66 seconds. Powered By: Snitz Forums 2000