--- In [email protected], "Charlie Markwick" <[EMAIL PROTECTED]> wrote: > > Thanks for getting back to me. Looking at the function it says it is non > reversible. If so wouldn't that mean I was unable to read the password > once it was store? I might not have been clear enough in my description, > I need to be able to get the password at a later date if needed. > > > Charlie > If you use MySQL's password function, or PHP's crypt or md5 functions, you will not be able to reverse the encryption to obtain the original password.
In that case, you must write your own encryption function which uses a passphrase that only you know. The simplest and most common method is to BITWISE OR the password with your passphrase. e.g. $encrypted = $password ^ $passphrase; You might also want to convert the result into a hexadecimal string. To unencrypt, just do the reverse on the encrypted string. Greg sites4all.net
