Module thotp::qr

source · []
Expand description

Contains a function to generate a qr code ready to be scanned by an authenticator app. Tested and working on Google Authenticator and FreeOTP. OTP uris generated by this module (which are encoded in the QR itself) are done so using this specification.

Enums

The error correction level. It allows the original information be recovered even if parts of the code is damaged.

Functions

Generates a QR code SVG ready to be scanned by an authenticator app. The parameters for OTPs and the secret get stored in the otp_uri
Generates an otp uri following this specification
Appends optional parameters to OTP uris. Mutates the string in place. The URI generated by this module’s otp_uri function is usually sufficient, however if you need to fully customize your OTP uri you may choose to do so with this function.