I think that generally you do not want passwords to be decryptable. What I normally do is try to encrypt whatever the user enters as a password and compare the resulting encrypted string with what's in the database to make sure they correspond. If the encrypting function is univocal (and md5 is) then the correct password will always return the same encrypted string.
On Wed, 2002-10-09 at 16:06, Scott Fletcher wrote: > Can it be de-encrypt??? I don't see how since you just use the function > md5(). > > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > If you don't need the file to be changed to contain md5 encrypted > > passwords use *fgetcsv() *to read the contenta, > > then use *md5()* on the password and insert it into database using > > mysql_query. No need to write a new file. > > > > Verdon Vaillancourt wrote: > > > > >Hi, > > > > > >I hope this question isn't too basic... > > > > > >I have a flat file (CSV) that I want to import into a mySQL db via > > >phpMyAdmin. The file has about 1200 rows and is in a format like: > > >"value","value","password","value","value","etc" > > >The passwords are in clear text. I need them to be encrypted in md5. > > > > > >Is there any advice out there as to how I could process this flat-file > > >before I import into my db or after the fact? > > > > > >Thanks, verdon > > >Ps. Please cc me if replying to list as I am on digest mode > > > > > > > > > > > > > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php