For encoding to/from base64urls implementing RFC 4648 base64url standard
89
Utilities for turning base64url-encoded strings into binary payloads and assembling them when split across multiple tokens.
Zm9vLWJhcg into a Buffer containing the ASCII bytes for foo-bar. @testtoken!) with an error. @test+vv8 and returns a Buffer whose hex representation is fafbfc. @test["Zm9vX2Jhcg", "+vv8"], decodes each token (treating either base64 or base64url) and concatenates them; the resulting Buffer should have hex 666f6f5f626172fafbfc. @test@generates
export function decodeUrlToken(token: string): Buffer;
export function decodeBase64Token(token: string): Buffer;
export function mergeDecoded(tokens: string[]): Buffer;Provides helpers for translating between standard and URL-safe base64 and decoding into Buffers.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/npm-base64url