RepositoryJavaScriptESTây Ban Nha
hectorm

hectorm/otpauth

One Time Password (HOTP/TOTP) library for Node.js, Deno, Bun and browsers.

1.5ksao
88fork
0issue
7lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: totp

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: google-authenticator

#1 Repository của tháng

1
TINIX TRENDING·Chủ đề: otpauth

#1 Repository của tháng

🔐 OTPAuth — Thư viện OTP đa nền tảng tuân thủ RFC

Hỗ trợ sinh và xác thực mã OTP dựa trên HOTP (RFC 4226) và TOTP (RFC 6238), phù hợp cho hệ thống xác thực hai yếu tố (2FA/MFA).

OTPAuth là một thư viện JavaScript hỗ trợ tạo và xác thực mật khẩu một lần (One-Time Password) cho Node.js, Deno, Bun và trình duyệt. Dự án tuân thủ các chuẩn RFC 4226 (HOTP) và RFC 6238 (TOTP), thường được dùng trong hệ thống xác thực đa yếu tố (MFA) hoặc hai yếu tố (2FA).

✨ Điểm nổi bật

  • Hỗ trợ HOTP và TOTP: Tuân thủ RFC 4226 và RFC 6238.
  • Đa nền tảng: Chạy trên Node.js, Deno, Bun và trình duyệt.
  • Tạo secret ngẫu nhiên: Sử dụng OTPAuth.Secret để tạo khóa bảo mật ngẫu nhiên.
  • Hỗ trợ nhiều thuật toán: SHA1, SHA256, SHA512, SHA3-256, v.v.
  • Chuyển đổi URI Google Authenticator: Tạo và phân tích chuỗi otpauth:// dùng cho mã QR.
  • Xác thựa với cửa sổ thời gian: Hỗ trợ kiểm tra mã với window để xử lý trường hợp lệch đồng hồ.
  • Tính toán thời gian còn lại: Lấy số mili giây trước khi mã thay đổi bằng remaining().
  • Bản dựng linh hoạt: Hỗ trợ phiên bản slim (không gói dependencies) và bare (tùy chỉnh HMAC).

💡 Vì sao đáng chú ý

OTPAuth khác biệt nhờ sự hỗ trợ đa nền tảng mà không cần polyfill, cùng với khả năng tùy biến cao như cung cấp hàm HMAC riêng. Thích hợp cho cả ứng dụng backend (Node.js/Deno/Bun) và frontend (trình duyệt) trong hệ thống 2FA cá nhân hoặc dịch vụ xác thực doanh nghiệp.


#OTPAuth #HOTP #TOTP #TwoFactorAuthentication #JavaScript #TiniX

Dự án tương tự

Khám phá các dự án và mô hình AI khác có sự tương đồng.

RepositoryTypeScript
yeojz/otplib

One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator

2.3k
Nov 29, 2026
RepositoryPHP
Bubka/2FAuth

A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes

4.3k
Nov 29, 2026
RepositoryJavaScript
nextcloud/twofactor_totp

🔑 Second factor TOTP (RFC 6238) provider for Nextcloud

321
Nov 22, 2026
RepositoryJava
beemdevelopment/Aegis

A free, secure and open source app for Android to manage your 2-step verification tokens.

13.7k
Nov 27, 2026
RepositoryJava
andOTP/andOTP

[Unmaintained] Open source two-factor authentication for Android

3.7k
Jun 14, 2022
RepositoryPython
scito/extract_otp_secrets

Extract one time password (OTP) secrets from QR codes exported by two-factor authentication (2FA) apps such as "Google Authenticator". The exported QR codes from authentication apps can be captured by camera, read from images, or read from text files. The secrets can be exported to JSON or CSV, or printed as QR codes to console.

1.7k
Nov 27, 2026
RepositoryC#
kspearrin/Otp.NET

A .NET implementation of TOTP and HOTP for things like two-factor authentication codes.

1.3k
Dec 1, 2025
RepositoryKotlin
helloworld1/FreeOTPPlus

Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator

759
Nov 30, 2026
RepositoryJava
jchambers/java-otp

A one-time password (HOTP/TOTP) library for Java

508
Dec 1, 2026