Ratings | | Unique User Downloads | | Download Rankings |
Not yet rated by the users | | Total: 132 | | All time: 9,252 This week: 154 |
|
Description | | Author Paragon Initiative Enterprises
Contributor
|
This package implements 2 factor authentication independent of the vendor.
It can generate one time passwords using either HOTP (Event-based One-Time Password) and TOTP (Time-based One-Time Password).
Currently the package provides one OTP implementation using Google Auth vendor. | |
 |
|
Innovation award
 Nominee: 28x
Winner: 1x |
|
Details
Multi-Factor

Designed to be a vendor-agnostic implementation of various Two-Factor
Authentication solutions.
Developed by Paragon Initiative Enterprises for use
in our own projects. It's released under a dual license: GPL and MIT. As with
all dual-licensed projects, feel free to choose the license that fits your
needs.
Requirements
Installing
composer require paragonie/multi-factor
Example Usage
<?php
use ParagonIE\MultiFactor\OneTime;
use ParagonIE\MultiFactor\OTP\TOTP;
$seed = random_bytes(20);
// You can use TOTP or HOTP
$otp = new OneTime($seed, new TOTP());
if (\password_verify($_POST['password'], $storedHash)) {
if ($otp->validateCode($_POST['2facode'])) {
// Login successful
}
}
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.