All Projects → jakobo → hotp-php

jakobo / hotp-php

Licence: other
HMAC Based One Time Passwords in PHP. RFC4226 and RFC6238 compliant.

Programming Languages

23972 projects - #3 most used programming language

Projects that are alternatives of or similar to hotp-php

multiOTP open source strong two factor authentication PHP library, OATH certified, with TOTP, HOTP, Mobile-OTP, YubiKey, SMS, QRcode provisioning, etc.
Stars: ✭ 173 (+239.22%)
Mutual labels:  otp, totp, hotp
🔑 A small library for generating TOTP and HOTP one-time passwords on iOS.
Stars: ✭ 243 (+376.47%)
Mutual labels:  otp, totp, hotp
iOS, watchOS, & macOS One-Time Password client
Stars: ✭ 14 (-72.55%)
Mutual labels:  otp, totp, hotp
A Web app to manage your Two-Factor Authentication (2FA) accounts and generate their security codes
Stars: ✭ 664 (+1201.96%)
Mutual labels:  otp, totp, hotp
HMAC-based (HOTP) and Time-based (TOTP) One-Time Password manager. Works with Google Authenticator for Two-Factor Authentication.
Stars: ✭ 79 (+54.9%)
Mutual labels:  otp, totp, hotp
A free, secure and open source app for Android to manage your 2-step verification tokens.
Stars: ✭ 2,692 (+5178.43%)
Mutual labels:  otp, totp, hotp
Javascript One-Time Password module.
Stars: ✭ 71 (+39.22%)
Mutual labels:  otp, totp, hotp
Open source two-factor authentication for Android
Stars: ✭ 3,326 (+6421.57%)
Mutual labels:  otp, totp, hotp
A small and easy-to-use one-time password generator library for Java according to RFC 4226 (HOTP) and RFC 6238 (TOTP).
Stars: ✭ 107 (+109.8%)
Mutual labels:  otp, totp, hotp
CrOTP - One Time Passwords for Crystal
Stars: ✭ 62 (+21.57%)
Mutual labels:  otp, totp, hotp
One Time Password (HOTP/TOTP) library for Node.js, Deno and browsers.
Stars: ✭ 135 (+164.71%)
Mutual labels:  otp, totp, hotp
🔐 A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP)
Stars: ✭ 857 (+1580.39%)
Mutual labels:  otp, totp, hotp
HOTP and TOTP token generation
Stars: ✭ 33 (-35.29%)
Mutual labels:  otp, totp, hotp
Highly secure and easy to use OTP client written in C/GTK that supports both TOTP and HOTP
Stars: ✭ 206 (+303.92%)
Mutual labels:  otp, totp, hotp
Single Sign On server, OAuth2, Openid Connect, multiple factor authentication with, HOTP/TOTP, FIDO2, TLS Certificates, etc. extensible via plugins
Stars: ✭ 292 (+472.55%)
Mutual labels:  otp, totp, hotp
Enhanced fork of FreeOTP-Android providing a feature-rich 2FA authenticator
Stars: ✭ 223 (+337.25%)
Mutual labels:  otp, totp, hotp
multiOTP Credential Provider is a V2 Credential Provider for Windows 7/8/8.1/10/2012(R2)/2016 with options like RDP only and UPN name support
Stars: ✭ 121 (+137.25%)
Mutual labels:  otp, totp, hotp
Totp Cli
A cli-based pass-backed TOTP app
Stars: ✭ 76 (+49.02%)
Mutual labels:  otp, totp
Yubikey Manager Qt
Cross-platform application for configuring any YubiKey over all USB interfaces.
Stars: ✭ 137 (+168.63%)
Mutual labels:  otp, hotp
🔑 One Time Password (OTP) / 2FA for Node.js and Browser - Supports HOTP, TOTP and Google Authenticator
Stars: ✭ 916 (+1696.08%)
Mutual labels:  otp, hotp

HOTP - PHP Based HMAC One Time Passwords

What is HOTP: HOTP is a class that simplifies One Time Password systems for PHP Authentication. The HOTP/TOTP Algorithms have been around for a bit, so this is a straightforward class to meet the test vector requirements.

What works with HOTP/TOTP: It's been tested to the test vectors, and I've verified the time-sync hashes against the following:

  • Android: Mobile-OTP
  • iPhone: OATH Token

Why would I use this: Who wouldn't love a simple drop-in class for HMAC Based One Time Passwords? It's a great extra layer of security (creating two-factor auth) and it's pretty darn zippy.

Okay you sold me. Give me some docs:

use jakobo\HOTP\HOTP;

// event based
$result = HOTP::generateByCounter( $key, $counter );

// time based within a "window" of time
$result = HOTP::generateByTime( $key, $window );

// same as generateByTime, but for $min windows before and $max windows after
$result = HOTP::generateByTimeWindow( $key, $window, $min, $max );

with $result, you can do all sorts of neat things...




// how many digits in your OTP?
$result->toHotp( $length );
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].