Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  


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


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


Returns encoded text or error.


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.


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


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

💬 Ask a question or report a problem