Current location: Hot Scripts Forums » Programming Languages » PHP » password ( ) + MYSQL


password ( ) + MYSQL

Reply
  #1 (permalink)  
Old 06-12-04, 07:51 AM
rsuresh rsuresh is offline
Newbie Coder
 
Join Date: May 2004
Location: India
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
password ( ) + MYSQL

Hi all ,
Can we decrypt MYSQL password that was encrypted using password ( ) using PHP
Most of my clients need to know their old passwords ,

I tried in many places but i couldnt get any answers , Only way is to over write the existing passwords .

Please suggest a better function for encrypting and Decrypting passwords for MYSQL using PHP

Thanks in Advance
Suresh
Reply With Quote
  #2 (permalink)  
Old 06-12-04, 08:14 AM
Rapid Dr3am Rapid Dr3am is offline
Community VIP
 
Join Date: Jan 2004
Location: Liverpool, England
Posts: 752
Thanks: 0
Thanked 0 Times in 0 Posts
Overwrite existing passwords.

The most common password encryption for php is md5 which is a one way hash.
__________________
Placeholder, place signature here.
Reply With Quote
  #3 (permalink)  
Old 06-15-04, 05:42 AM
Worm's Avatar
Worm Worm is offline
Newbie Coder
 
Join Date: Jun 2004
Location: Germany, Frankfurt am Main
Posts: 91
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by rsuresh
Hi all ,
Can we decrypt MYSQL password that was encrypted using password ( ) using PHP
Most of my clients need to know their old passwords ,

I tried in many places but i couldnt get any answers , Only way is to over write the existing passwords .

Please suggest a better function for encrypting and Decrypting passwords for MYSQL using PHP

Thanks in Advance
Suresh
Hi !

Afaics the MySQL password() function decrypts its input with a part of the password itself. That means that you cannot decrypt the password but only compare it with the encryption of a user input. This means furtheron that you can just select the password from the mysql table f.e. and compare it with the return value of password() with a given parameter. This is the way md5() and some other encryption algorithm works...
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP Form to update a MySQL database? Scoobler PHP 9 09-04-08 01:41 AM
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 02:22 AM
Error while creating database (Errornumber 2002: "Can't connect to local MySQL server lylesback2 PHP 5 04-11-04 01:37 PM
mysql table wcfoone PHP 0 12-18-03 12:31 PM
great product for dumping/recovering MySQL databases Dave Brown General Advertisements 1 10-03-03 07:40 AM


All times are GMT -5. The time now is 05:01 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.