Re: modified base64

From: Date: Wed, 10 Apr 2002 20:59:14 +0000
Subject: Re: modified base64
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-82518@lists.php.net to get a copy of this message
At 20:26 10.04.2002, Markus Fischer wrote:
On Wed, Apr 10, 2002 at 07:42:57PM +0200, Marcus Börger wrote : At 19:39 10.04.2002, Richard Heyes wrote:
After (v)spprintf i have another modified function here:
base64url_(en|de)code You could simply use this: urlencode(base64_encode($blaat));
Sure but the the encoding result grows in length (dynamically) what i wanted to avoid :-)
    But modifying the way base64_encode() works is not the right
    thing [tm].
It is not a replacement for base64 it is a new encoding function with some big similarities to base64. So i can do whatever i want with it. When i wanted it as a replacement for base64 in MIME i had to use the character ' instead of -. No more than the four characters -_'! fulllfill all named requirements. But ' is bad for program parameters and such and - is bad for MIME. marcus

« previous php.dev (#82518) next »