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
 password encryption

Author  Topic 

BankOfficerHere
Posting Yak Master

124 Posts

Posted - 2008-10-10 : 17:57:45
I have table that have all passwords and log ins for my site. I need the passwords be encrypted.

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-10 : 17:59:28
Do you have a frontend ?

In the new .net's mememberships, passwords are encrypted for you.
Go to Top of Page

BankOfficerHere
Posting Yak Master

124 Posts

Posted - 2008-10-10 : 18:01:46
I'm using Dreamweaver CS3. I'm using ASP
Go to Top of Page

afrika
Master Smack Fu Yak Hacker

2706 Posts

Posted - 2008-10-10 : 18:11:58
Classic ASP ? Has no inbuilt functions for encryption. Unlike .net that does it for you in one line of code

You will have to get a third party script, or else someone else has a suggestion.
Go to Top of Page

BankOfficerHere
Posting Yak Master

124 Posts

Posted - 2008-10-10 : 18:18:51
is there anyone who can help?
Go to Top of Page

hanbingl
Aged Yak Warrior

652 Posts

Posted - 2008-10-10 : 18:35:47
sql server 2000 or 2005?

sql 2000 has an undocumented Encrypt function:

select encrypt(<PASSWORD COLUMN>) as encrypt_pass from <TABLE>
Go to Top of Page

BankOfficerHere
Posting Yak Master

124 Posts

Posted - 2008-10-10 : 18:38:46
sql server 2000
Go to Top of Page

hanbingl
Aged Yak Warrior

652 Posts

Posted - 2008-10-10 : 18:39:20
Forgot to post this part :

select encrypt(<PASSWORD COLUMN>) as encrypt_pass from <TABLE>
Go to Top of Page

hanbingl
Aged Yak Warrior

652 Posts

Posted - 2008-10-10 : 18:43:32
also another undocumented function: pwdencrypt
Found this article for usage on how to compare password with encrypted password:

http://geekswithblogs.net/veerji/archive/2004/07/13/8305.aspx
Go to Top of Page
   

- Advertisement -