DI
dimspith/otplib
Nim One-Time Password Library
OTPLIB - One Time Password Library for Nim 
OTPLIB is a Nim package for generating, managing and verifying one-time passwords.
It can be used to implement 2FA or MFA in web applications and other systems that require users to log in.
Multi-factor Authentication standards are defined in:
OTPLIB was inspired by other OTP libraries like GOTP and PyOTP.
TODO
- Handle Google's key URI format
- Add support for more hash modes
Installation
To install run:
$ nimble install otplibTo include it in your project add this to your nimble file:
requires "otplib"and import it:
import otplibUsage
See: Documentation
Contributing, feature requests and bug reports
Contributions are welcome ๐
Make sure to run nimpretty on your changes to maintain a consistent style.
On this page
Languages
Nim97.5%Shell2.5%
Contributors
The Unlicense
Created November 16, 2021
Updated December 29, 2025