Re: Help with IF ELSE
| From: | Bastien Koert | Date: | Fri, 05 Dec 2008 16:10:41 +0000 |
| Subject: | Re: Help with IF ELSE | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284176@lists.php.net to get a copy of this message | ||
On Fri, Dec 5, 2008 at 9:17 AM, tedd <tedd.sperling@gmail.com> 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