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
 [email protected]

_______________________________________________
use-livecode mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to