Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

TOTP.EncodeToBase32

Encode a base32 string.

Component Version macOS Windows Linux Server iOS SDK
TOTP 13.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "TOTP.EncodeToBase32"; text { ; encoding } )   More

Parameters

Parameter Description Example Flags
text The text to process. "Hello World"
encoding The text encoding for text parameter.
Default is UTF-8.
"UTF-8" Optional

Result

Returns encoded text or error.

Description

Encode a base32 string.
Please check what text encoding you want to use. Especially what the software processing the base32 string expects.
Based on RFC 3548 and RFC 4648.

Examples

Encode Hello

MBS( "TOTP.EncodeToBase32"; "Hello World" )

Example result: JBSWY3DPEBLW64TMMQ======

Encode test string:

MBS( "TOTP.EncodeToBase32"; "The quick brown fox jumps over the lazy dog.")

Example result: KRUGKIDROVUWG2ZAMJZG653OEBTG66BANJ2W24DTEBXXMZLSEB2GQZJANRQXU6JAMRXWOLQ=

See also

Release notes

Blog Entries

This function is free to use.

Created 16th August 2023, last changed 16th August 2023


TOTP.DecodeFromBase32 - Text.AddLineNumbers