LuaRocks.org had a security incident in September 2026. Read the incident report.

A simple implementation of OATH-HOTP and OATH-TOTP.

$ luarocks install otp

This is a simple OATH-HOTP and OATH-TOTP implementation in pure lua
that makes use of luaossl for its hashing needs. It can be used as
a generation and verification library and is compatible with the
RFCs 4226 and 6238. It only supports the SHA-1 hashing algorithm
(as specified in the RFCs).

Versions

0.1-68 years ago1,583 downloads
0.1-59 years ago472 downloads
0.1-411 years ago300 downloads
0.1-311 years ago(revision: 3)77 downloads
0.1-211 years ago79 downloads
0.1-111 years ago119 downloads

Dependencies

basexx >= 0.1
lua >= 5.1

Labels

Manifests