On Fri, Dec 5, 2008 at 9:17 AM, tedd <tedd.sperling@xxxxxxxxx> wrote: > At 7:19 AM -0500 12/5/08, David Stoltz wrote: > >> The problem turned out to be, since I'm using the MCRYPT function to >> encrypt the password, once in a while the encrypted password will have a bad >> character: >> > --snip-- > >> >> So then, how does one store this type of string? I can't do a string >> replace....but there must be a way... >> > > I use md5() -- it works great for passwords and I don't have that type of > problem. > > Cheers, > > tedd > > -- > ------- > http://sperling.com http://ancientstones.com http://earthstones.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > One option is to base64encode it before sticking it in the db and then doing a base64decode upon retreival. -- Bastien Cat, the other other white meat