An open API service indexing awesome lists of open source software.

https://github.com/openpeeps/twofa

Generate TOTP, HOTP, QR codes. Based on OpenSSL
https://github.com/openpeeps/twofa

2fa hotp nim qrcode totp twofactor

Last synced: 3 days ago
JSON representation

Generate TOTP, HOTP, QR codes. Based on OpenSSL

Awesome Lists containing this project

README

          


A tiny package for generating 2FA QR codes and TOTP/HOTP codes in Nim


nimble install twofa


API reference

Github Actions Github Actions

## 😍 Key Features
- 🔐 Generate TOTP and HOTP codes
- 📱 Create QR codes for easy setup with authenticator apps

> [!NOTE]
> This library is built on top of the [qr](https://github.com/ThomasTJdev/nim_qr) for QR code generation.

## Examples
Check out the [tests/*.nim](https://github.com/openpeeps/twofa/tree/main/tests) folder for examples of how to use the library.

### TODO
Currently you can use [otp](https://github.com/OpenSystemsLab/otp.nim) to verify TOTP and HOTP codes, but I plan to add that
functionality directly into this library in the future.

### ❤ Contributions & Support
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/twofa/issues)
- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/twofa/fork)

### 🎩 License
MIT license. [Made by Humans from OpenPeeps](https://github.com/openpeeps).

Copyright OpenPeeps & Contributors — All rights reserved.