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

Base32 support #2002

Closed
Inder00 opened this issue Jan 14, 2021 · 2 comments
Closed

Base32 support #2002

Inder00 opened this issue Jan 14, 2021 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@Inder00
Copy link
Contributor

Inder00 commented Jan 14, 2021

Describe the solution you'd like
Add base32 support programically.
Base32 is used by two-factor-authentication (ex. TOTP) to generating secret tokens.

Shared functions:

  • string base32Encode( string value )
  • string base32Decode( string value ),
  • string encodeString( string "base32", string value )
  • string decodeString( string "base32", string value )
@Inder00 Inder00 added the enhancement New feature or request label Jan 14, 2021
@Pirulax
Copy link
Contributor

Pirulax commented Jan 15, 2021

I think we should add a baseEncode/Decode function instead.
The syntax would look like this:

baseEncode(string value, int radix = 64)

Radix is the base, so 32, 64, 128, etc...

@Nico8340
Copy link
Contributor

This issue can be closed, as #3312 was merged.

@botder botder closed this as completed Feb 26, 2024
@botder botder added this to the 1.6.1 milestone Feb 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants