base64urlencode

Mike Kerner MikeKerner at roadrunner.com
Tue Jun 16 15:00:29 EDT 2020


you sure?  there is a difference in padding, as well, it seems.

On Tue, Jun 16, 2020 at 12:44 PM Mark Wieder via use-livecode <
use-livecode at lists.runrev.com> wrote:

> On 6/16/20 9:24 AM, Mike Kerner via use-livecode wrote:
> > does anyone have a routine to do base64urlencoding?  it's not the same as
> > base64encoding or urlencoding.
> >
>
> It mostly is the same. Does this do the trick?
>
> function base64urlencode pString
>         local tEncoded
>
>         put base64encode(pString) into tEncoded
>         replace "+" with "-" in tEncoded
>         replace "/" with "_" in tEncoded
>         replace "=" with "" in tEncoded
>         return tEncoded
> end base64urlencode
>
> --
>   Mark Wieder
>   ahsoftware at gmail.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>


-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list