package otp

  1. Overview
  2. Docs
On This Page
  1. API
    1. Library otp
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

otp

API

Library otp

  • Otp This library implements the Time-based One Time Password RFC 6238 with an HMAC-SHA1 algorithm and a 6 digits code. It relies on the Cryptokit library for cryptography operations, as well as the Base32 library for base32 encoding. The library generates a QR Code with the qrc library. It is tested against all test vectors provided in RFC 6238 and the test suite provides as well a dynamic test which requires the use of an client authenticator (like Google Authenticator or Microsoft Authenticator) as a final test.