Re: Encryption failing

From: Date: Wed, 16 Jan 2008 04:07:11 +0000
Subject: Re: Encryption failing
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-267349@lists.php.net to get a copy of this message
me too - it was a space. i changed it to "+" and it worked fine. $cookie = str_replace(' ', '+', $_COOKIE['foo']); On 1/15/08, Bastien Koert <bastien_k@hotmail.com> wrote: > > are you base64 encoding the resultant encryption string? I have found that there are problems > with certain characters that can result from the encryption, usually a combination of characters > that approximate a null or end of line > > bastien> From: Kixjaguar@comcast.net> Date: Tue, 15 Jan 2008 21:41:45 -0600> To: > bastien> php-general@lists.php.net> Subject: Re: [PHP] Encryption failing> > > On Jan 15, 2008, > bastien> at 7:06 PM, Casey wrote:> > >> Maybe you could echo the results of the failed ones and > bastien> compare.> > I did that at first, thinking that "something about these strings > might > bastien> cause the problem." But then I realized: I can't blame the > data. I don't have > bastien> any control over what users use for passwords, for > example. this thing is supposed to > bastien> en/decrypt the strings I gige it, > so there must be some kind of programming flaw.> > > bastien> FWIW, there was no discernible pattern to the failed strings, at > least not to me. (Not that it > bastien> matters.)> > Ken> > -- > PHP General Mailing List (http://www.php.net/)> To > bastien> unsubscribe, visit: http://www.php.net/unsub.php> > _________________________________________________________________ > >

« previous php.general (#267349) next »