PHP Classes
elePHPant
Icontem

PHP Multi Factor Authentication: 2 factor authentication independent of the vendor

Recommend this page to a friend!

  Author Author  
Name: Scott Arciszewski <contact>
Classes: 17 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 13x

Winner: 1x


  Detailed description   Download Download .zip .tar.gz  
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.

Details

Multi-Factor

Build Status

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    
    }
}

  Classes of Scott Arciszewski  >  PHP Multi Factor Authentication  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: PHP Multi Factor Authentication
Base name: multi_factor
Description: 2 factor authentication independent of the vendor
Version: -
PHP version: 7
License: MIT/X Consortium License
 
  Groups   Applications   Files Files  

  Groups  
Group folder image Cryptography Encrypting, decrypting and hashing data View top rated classes
Group folder image Security Security protection and attack detection View top rated classes
Group folder image PHP 7 Classes using PHP 7 specific features View top rated classes


  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Files folder imagesrc (2 files, 2 directories)
Files folder imagetest (3 files, 1 directory)
Accessible without login Plain text file .travis.yml Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml.dist Data Auxiliary data
Accessible without login Plain text file psalm.baseline.xml Data Auxiliary data
Accessible without login Plain text file psalm.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Read me

Download Download all files: multi_factor.tar.gz multi_factor.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.