Component: TOTP 
----------------

Create Time-based one-time passwords

| Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|
| [12.3](newinversion123.md "First functions introduced with version 12.3.") / [13.4](newinversion134.md "Newest functions in version 13.4.") | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

  
| Item | Details |
|:--|:--|
| [TOTP.Calculate](TOTPCalculate.md)   Calculates a Time-based one-time password. | All   12.3 |
| [TOTP.CurrentTime](TOTPCurrentTime.md)   Queries current time. | All   12.3 |
| [TOTP.DecodeFromBase32](TOTPDecodeFromBase32.md)   Decode a base 32 string. | All   13.4 |
| [TOTP.EncodeToBase32](TOTPEncodeToBase32.md)   Encode a base32 string. | All   13.4 |

4 functions shown.

These functions are free to use.

### Release notes

- **Version 15.2**
    - Rewrote parts of [TOTP.Calculate](https://www.mbsplugins.eu/TOTPCalculate.shtml) function, broken with Xcode upgrade.
- **Version 13.4**
    - Added [TOTP.DecodeFromBase32](https://www.mbsplugins.eu/TOTPDecodeFromBase32.shtml) and [TOTP.EncodeToBase32](https://www.mbsplugins.eu/TOTPEncodeToBase32.shtml) functions.
- **Version 12.5**
    - Added algorithm and DecodeBase32 parameters to [TOTP.Calculate](https://www.mbsplugins.eu/TOTPCalculate.shtml) function.
    - Changed [TOTP.Calculate](https://www.mbsplugins.eu/TOTPCalculate.shtml) function to return number with zeros on front.
- **Version 12.3**
    - Added [TOTP.Calculate](https://www.mbsplugins.eu/TOTPCalculate.shtml) function and [TOTP.CurrentTime](https://www.mbsplugins.eu/TOTPCurrentTime.shtml) function to create Time-based one-time passwords.

### 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 12.3](https://www.mbsplugins.de/archive/2022-07-19/MBS_FileMaker_Plugin_123/monkeybreadsoftware_blog_filemaker)

### Example Databases

- [Utility functions/TOTP](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Utility%20functions/TOTP.shtml#1Button150.0000000567.0000000180.0000000700.0000000LayoutObjectAnchor_)

[HTML Version](component_TOTP.shtml)