otplib
Easy to use OTP library for Nim
Summary
| Latest Version | Unknown |
|---|---|
| License | Unlicense |
| CI Status | Failing |
| Downloads | 0 |
| Last Indexed | 2026-07-21 05:25 |
Tags
Installation
nimble install otplib
choosenim install otplib
git clone https://github.com/dimspith/otplib
OS Compatibility
| Platform | Linux | macOS | Windows | FreeBSD | OpenBSD | NetBSD | Android | iOS | WASM | Embedded |
|---|---|---|---|---|---|---|---|---|---|---|
| otplib | ✓ | ✓ | ✓ | - | - | - | - | - | - | - |
Source
| Repository | https://github.com/dimspith/otplib |
|---|---|
| Homepage | https://github.com/dimspith/otplib |
| Registry Source | nimble_official |
README
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 otplib
To include it in your project add this to your nimble file:
requires "otplib"
and import it:
import otplib
Usage
See: Documentation
Contributing, feature requests and bug reports
Contributions are welcome 💕
Make sure to run nimpretty on your changes to maintain a consistent style.