RE: Encryption failing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> -----Original Message-----
> From: Bastien Koert [mailto:bastien_k@xxxxxxxxxxx]
> Sent: Wednesday, January 16, 2008 12:55 AM
> To: Ken Kixmoeller -- reply to ken@xxxxxxxxxxxxxx; php-
> general@xxxxxxxxxxxxx
> Subject: RE:  Encryption failing
> 
> 
> 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@xxxxxxxxxxx> Date: Tue, 15 Jan 2008 21:41:45 -
> 0600> To: php-general@xxxxxxxxxxxxx> Subject: Re:  Encryption
> failing> > > On Jan 15, 2008, at 7:06 PM, Casey wrote:> > >> Maybe you
> could echo the results of the failed ones and compare.> > I did that at
> first, thinking that "something about these strings > might cause the
> problem." But then I realized: I can't blame the > data. I don't have
> any control over what users use for passwords, for > example. this
> thing is supposed to en/decrypt the strings I gige it, > so there must
> be some kind of programming flaw.> > FWIW, there was no discernible
> pattern to the failed strings, at > least not to me. (Not that it
> matters.)> > Ken> > -- > PHP General Mailing List
> (http://www.php.net/)> To unsubscribe, visit:
> http://www.php.net/unsub.php>

I second that, you should base64 encode values before encrypting and base64
decode them after decrypting to be safe.

Rob

Andrés Robinet | Lead Developer | BESTPLACE CORPORATION
5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308
| TEL 954-607-4207 | FAX 954-337-2695
Email: info@xxxxxxxxxxxxx  | MSN Chat: best@xxxxxxxxxxxxx  |  SKYPE:
bestplace |  Web: http://www.bestplace.biz | Web: http://www.seo-diy.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux