SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Encrypted Password
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

nasreen_laghari
Starting Member

3 Posts

Posted - 01/08/2008 :  17:12:44  Show Profile  Reply with Quote
Hi,

I wonder if it is possible to retrieve encrypted password somehow?
Like I have saved password (blueRays) in encrypted formate. How can I retrieve it "where password='blueRays' "?

Regards

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

USA
7020 Posts

Posted - 01/08/2008 :  17:45:33  Show Profile  Reply with Quote
Use your unencrypt function to decrypt the encrypted passwords in the where clause.
where unencrypt_function(password) = 'blueRays'


CODO ERGO SUM
Go to Top of Page

nasreen_laghari
Starting Member

3 Posts

Posted - 01/08/2008 :  19:25:13  Show Profile  Reply with Quote
ohhh... didnt work :(

I used below command to encrypt the password:
insert into guestbook_admin values('abc',encrypt('hello'));

So I tried to retrieve encrypted password using:
  • select * from guestbook_admin where unencrypt_function(password)= 'hello';
  • select * from guestbook_admin where unencrypt(password)= 'hello';
  • select * from guestbook_admin where deencrypt(password)= 'hello';
  • select * from guestbook_admin where decrypt(password)= 'hello';


Also this page doesnt have any function which does reverse of encryption
http://dev.mysql.com/doc/refman/5.0/en/encryption-functions.html#function_encrypt


Go to Top of Page

Michael Valentine Jones
Yak DBA Kernel (pronounced Colonel)

USA
7020 Posts

Posted - 01/08/2008 :  20:01:40  Show Profile  Reply with Quote
Why are you posting MySQL questions on a Microsoft SQL Server forum?



CODO ERGO SUM
Go to Top of Page

nasreen_laghari
Starting Member

3 Posts

Posted - 01/09/2008 :  05:59:24  Show Profile  Reply with Quote
Ohhh Sorry I didnt realise that i'm not wrong forum. I have uploaded to MySQL AB now.

Thank you
Go to Top of Page
  Previous Topic Topic Next Topic  
 New 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.07 seconds. Powered By: Snitz Forums 2000