Re: Encryption failing
| From: | mike | Date: | Wed, 16 Jan 2008 06:34:42 +0000 |
| Subject: | Re: Encryption failing | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267367@lists.php.net to get a copy of this message | ||
On 1/15/08, Andrés Robinet <agrobinet@bestplace.biz> wrote:
> 1 - Mike is right about first encrypting and then doing a base64_encode (then saving results to
> DB, cookies, etc). I don't know why replacing " " to "+" for decrypting,
> though.
we have an application which sets an encrypted cookie in .NET, and
base64 encodes it. for some reason, PHP was choking on spaces, but "+"
worked like a charm. not sure if it's something odd in the URL
encoding during transit or what... but it works like a charm.
I have on my todo list to post the code samples both from .NET side
and PHP side to help other people, but I haven't got around to it (not
to mention I have to take out some custom code specific to my
company's implementation)