| Recommend this page to a friend! |
| Info | Documentation | Reputation | Support forum | Blog | Links |
| Ratings | Unique User Downloads | Download Rankings | ||||
| Not yet rated by the users | Total: 141 | All time: 9,202 This week: 67 | ||||
| Version | License | PHP version | Categories | |||
| multi_factor 1.0 | MIT/X Consortium ... | 7 | Cryptography, Security, PHP 7 |
| Description | Author | |
This package implements 2 factor authentication independent of the vendor. |
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.
composer require paragonie/multi-factor
<?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
}
}
| File | Role | Description | ||
|---|---|---|---|---|
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Lic. | License text | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Data | Auxiliary data | |||
| Doc. | Read me | |||
| / | src |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Class | Class source | ||
| |
Class | Class source | ||
| / | src | / | OTP |
| File | Role | Description |
|---|---|---|
| |
Class | Class source |
| |
Class | Class source |
| |
Class | Class source |
| / | test |
| File | Role | Description | ||
|---|---|---|---|---|
| |
Class | Class source | ||
| |
Class | Class source | ||
| |
Class | Class source | ||
| / | test | / | fixtures |
| File | Role | Description |
|---|---|---|
| |
Doc. | Documentation |
| |
Doc. | Documentation |
| |
Doc. | Documentation |
| |
Doc. | Documentation |
| The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
| Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
| 100% |
|
|
| Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.