mtasa-blue icon indicating copy to clipboard operation
mtasa-blue copied to clipboard

Base32 support

Open Inder00 opened this issue 4 years ago • 1 comments

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 avatar Jan 14 '21 17:01 Inder00

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...

Pirulax avatar Jan 15 '21 00:01 Pirulax

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

Nico8340 avatar Feb 26 '24 21:02 Nico8340