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
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Encryption of data

Author  Topic 

sqldev80
Yak Posting Veteran

68 Posts

Posted - 2006-05-25 : 15:30:07
I have some data in my table which is like customerID
I create a url from that

www.url.com/image/customerid.html

now say if the customerid is like 12345 and i want to encrypt it when i run the query to generate the URL. Is there any way to do that.
Also I want it to un-encrypt when I want.

I am not sure how this can be done. But if there is a way let me know.

Srinika
Master Smack Fu Yak Hacker

1378 Posts

Posted - 2006-05-25 : 15:41:42
I think u may need to write code to do that
Long time back, I did something like follows as the algorithm
eg.
Add ASCII 100 for the first character, 110 for the second 112 for the 3rd
Again 4th character add ASCII 100, 110 for the fifth 112 for the 6th ...
After each multiple of 3rd character, an additional character of adding ASCII 115 to the string.

U can have any other ASCII values (make sure u r in the ASCII range)



When u decrypt, use the reverse routine

Srinika
Go to Top of Page
   

- Advertisement -