TOTP.DecodeFromBase32
---------------------

Decode a base 32 string.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TOTP](component_TOTP.md) | [13.4](newinversion134.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "TOTP.DecodeFromBase32"; Text { ; Encoding } ) 

**MBS**( **"TOTP.DecodeFromBase32";** /\* Decode a base 32 string. \*/  
**$Text**; /\* The text to process.e.g. "JBSWY3DPEBLW64TMMQ======" \*/   
**$Encoding**) /\* Optional; The text encoding for result.   
Default is UTF-8.e.g. "UTF-8" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| Text | The text to process. | "JBSWY3DPEBLW64TMMQ======" |  |
| Encoding | The text encoding for result.    Default is UTF-8. | "UTF-8" | Optional |

### Result

Returns text or error.

### Description

Decode a base 32 string.  
This is for text only.   
### Examples

Decode it:

 MBS ( "TOTP.DecodeFromBase32"; "JBSWY3DPEBLW64TMMQ======" )  
<small>  
Example result: Hello World</small>### See also

- [Text.DecodeFromBase64](TextDecodeFromBase64.md)
- [TOTP.EncodeToBase32](TOTPEncodeToBase32.md)

### Release notes

- **Version 13.4**
    - Added [TOTP.DecodeFromBase32](https://www.mbsplugins.eu/TOTPDecodeFromBase32.shtml) and [TOTP.EncodeToBase32](https://www.mbsplugins.eu/TOTPEncodeToBase32.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 13.4](https://www.mbsplugins.de/archive/2023-09-20/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.4pr3](https://www.mbsplugins.de/archive/2023-08-16/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

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

  
[TOTP.CurrentTime](TOTPCurrentTime.md) - [TOTP.EncodeToBase32](TOTPEncodeToBase32.md)

[HTML Version](TOTPDecodeFromBase32.shtml)