one-time-password: HMAC-Based and Time-Based One-Time Passwords

[ cryptography, library, mit, program ] [ Propose Tags ]

Implements HMAC-Based One-Time Password Algorithm as defined in RFC 4226 and Time-Based One-Time Password Algorithm as defined in RFC 6238.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],, 2.0.0,
Change log
Dependencies base (>=4.17 && <5), bytestring (>=0.11 && <0.12), cereal (>=0.5 && <0.6), chronos (>=1.1.6 && <1.2), cryptohash-sha1 (>=0.11 && <0.12), network-uri (>=2.6 && <2.7), one-time-password, optparse-applicative (>=0.15 && <0.19), sel (>=0.0 && <0.1), text (>=2.1 && <2.2), text-display (>=0.0 && <0.1), torsor (>=0.1 && <0.2) [details]
License MIT
Copyright (c) 2023 The Haskell Cryptography Group
Author Hécate Moonlight
Maintainer The Haskell Cryptography Group contributors
Category Cryptography
Home page
Bug tracker
Source repo head: git clone git://
Uploaded by hecate at 2024-04-13T20:37:35Z
Distributions NixOS:2.0.0
Reverse Dependencies 2 direct, 0 indirect [details]
Executables one-time-password
Downloads 3001 total (34 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for one-time-password-

[back to package description]


CI badge Hackage

A One-Time Password (OTP) is a dynamic password used once in conjunction with an account's usual password, a for the purpose of two-factor authentication.

It can be based on a counter (HOTP) or a timestamp (TOTP). This module provides both methods.

Mobile authenticator applications will typically require a TOTP secret. They are most commonly provided as QR codes to scan. This library can generate a URI that can be used by a QR Code generator.