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

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Encrypting and Decrypting using HashBytes

Author  Topic 

m_z_iqbal
Starting Member

28 Posts

Posted - 2008-11-21 : 06:32:10
Hi,
How can i use HashBytes to Encrypt and Decrypt Data.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-11-21 : 07:23:25
A hash is per definition a "one way encryption". You can't decrypt a hash.



E 12°55'05.63"
N 56°04'39.26"
Go to Top of Page

sakets_2000
Master Smack Fu Yak Hacker

1472 Posts

Posted - 2008-11-21 : 07:41:47
If you're on sql server 2000, you'd need third party DLLs. Sql server 2k5 has hashing and encrypting algorithms. But like Peso says, hashing won't let you decrypt. That I think is the only bit by which it differs from normal encyption.

This site should be helpful if you want to know on how to do it using encyption algorithms on 2k5.
http://searchsqlserver.techtarget.com/tip/0,289483,sid87_gci1285699,00.html#
Go to Top of Page
   

- Advertisement -