MIT AI2 TOTP Code Generator Extension

Hi friends,

1.- This extension generates TOTP (Time-based One-Time Password) compliant to RFC-6238.

2.- It´s compatible with Google Authenticator Base32 encoded Secret Keys.

3.- You can customize the interval between codes.

4.- You must provide the epoch (seconds since 01/01/1970) in GMT and a Base32 encoded secret key and it will return the 6 code TOTP.

5.- It was build using Niotron IDE.

This extension has several uses, from a simple application that shows TOTP codes to its use for authentication in devices like Arduino with TOTP Library (lucadentella/TOTP-Arduino at github) where the developer does not want to use a static password and wants a more secure way to authenticate. I personally use it on ESP32 devices to authenticate over Bluetooth LE and send commands. The device needs to have a reliable time source, but it doesn't necessarily needs internet. In my case the clock is synchronized periodically using a GPS module.


Ricardo Alexandre

TOTP.aia (9.7 KB)
TOTPCodeGenerator.aix (8.5 KB)


Thank you for your extension.

You might explain in what circumstances a user would need a TOTP...

1 Like

I updated the post with more explanation.
Thank you!

1 Like