How do I tranform a string that was strored in binary/hex in SQL back to hex/binary to store it in another location

I have a local database where the password is stored as binary for security.  I do not want the original.  I need to be able to restore a person's password if they don't login for a long time (two onths or more...the system deletes their password). 
If I store the binary/hex password by name, I should be able restore the hex/binary to the table and they can login.  How do I convert the string back to a hex value to set into the tble again ?

I have a local database where the password is stored as binary for security. 
That's not secure, never store passwords, use (store) only hash (+salt) values for compare:
http://en.wikipedia.org/wiki/Cryptographic_hash_function
http://en.wikipedia.org/wiki/Salt_(cryptography)
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

Maybe you are looking for