If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > How can encrypt a string and select it in a readable format?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-20-04, 08:06
oliflorence oliflorence is offline
Registered User
 
Join Date: Aug 2004
Posts: 96
How can encrypt a string and select it in a readable format?

hi,
I would like to encrypt a password in a MySQL DB, simple enough with PASSWORD() or ENCODE(), however I want the site users to be able to request their password to be sent by email if lost so I need to retrieve this password in a readable format, is it possible using perhaps another function?
The password protected area doesn't contain any very sensitive info so it is not a big issue to retrieve it in a readable format.

Thank you for your help,
Oliveir
Reply With Quote
  #2 (permalink)  
Old 08-20-04, 08:48
Pat Phelan Pat Phelan is offline
Resident Curmudgeon
 
Join Date: Feb 2004
Location: In front of the computer
Posts: 12,609
My first advice would be to store the password in plain text. If there is a simple way to decrypt data, then there isn't much point in encrypting it. If the users can't query the table directly, or even if they can and the password is of little value, then just leave it in plain text (or drop the password requirement altogether).

-PatP
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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