Skip to content

toBase64 with base64url alphabet and padding #59

Closed
@panva

Description

@panva

Is it an intended API design that after base64url alphabet toBase64() one needs to remove padding with string manipulation if they need to?

I would expect a padding option in toBase64 to control the behaviour (emit vs omit).

As a module developer / implementer of the various security token formats such as JOSE (JWS/JWE/JWT, ... etc) and PASETO I was hoping this API would not require any further string manipulation to achieve the buffer encoding used in so many standards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions