TOPT QR code Generator with an API

TOTP stands for Time-based One Time Password, it is an algorithm to generate secret which are time based, this algrithm needs a seed (secret) to initialise, the QR code allows to share this seed.

If you give me a label and a secret, I will generate a TOPT QR Code that you can scan with any Google Authenticator compatible scanner (including Auhty and 1password)

The simplified URI format is: otpauth://totp/[label]?secret=[secret]

The label istself can include an issuer and account as in issuer:account

Give me a label and a secret:


otpauth://totp/label?secret=secret&digits=digits&period=period

API

The api is available through a GET request to https://totp.glitch.me/totp/[label]/[secret[/digits[/period]] it will simply return the image for the qr code.

This was inspired by https://chart.googleapis.com/chart?chs=256x256&cht=qr&chl=otpauth://totp/label?secret=secret but is marked as deprecated since April 2015.