Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: add option to make base32 padding optional #33

Closed
benjreinhart opened this issue May 29, 2024 · 1 comment
Closed

Feature request: add option to make base32 padding optional #33

benjreinhart opened this issue May 29, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@benjreinhart
Copy link
Contributor

Some third-party and/or standard libraries support optional padding when encoding and decoding.

User facing ids that look like the below are an eyesore.

> base32.encode(crypto.getRandomValues(new Uint8Array(16)))
'7CI63KSR5ANU3BKSLYUFTGYQPM======'

I'm wondering if you would be open to adding a {padding: false} option or doing something like #4 for base32 as well?

@benjreinhart benjreinhart changed the title Feature request: add option to make padding optional Feature request: add option to make base32 padding optional May 29, 2024
@paulmillr paulmillr added the enhancement New feature or request label May 29, 2024
@paulmillr
Copy link
Owner

you can add it as base32nopad if you need it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants