2017 © Pedro Peláez
 

library multi-factor

Vendor-agnostic two-factor authentication library

image

paragonie/multi-factor

Vendor-agnostic two-factor authentication library

  • Monday, September 4, 2017
  • by paragonie-scott
  • Repository
  • 11 Watchers
  • 82 Stars
  • 2,909 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 11 Forks
  • 5 Open issues
  • 5 Versions
  • 6 % Grown

The README.md

Multi-Factor

Designed to be a vendor-agnostic implementation of various Two-Factor Authentication solutions., (*1)

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., (*2)

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'], time())) {
        // Login successful    
    }
}

The Versions

04/09 2017

dev-master

9999999-dev

Vendor-agnostic two-factor authentication library

  Sources   Download

MIT proprietary GPL-3.0+

The Requires

 

The Development Requires

2fa two-factor totp hotp two-factor authentication multi-factor tfa mfa multi-factor authentication

18/06 2016

v0.2.2

0.2.2.0

Vendor-agnostic two-factor authentication library

  Sources   Download

MIT proprietary GPL-3.0+

The Requires

 

The Development Requires

2fa two-factor totp hotp two-factor authentication multi-factor tfa mfa multi-factor authentication

18/06 2016

v0.2.1

0.2.1.0

Vendor-agnostic two-factor authentication library

  Sources   Download

MIT proprietary GPL-3.0+

The Requires

 

The Development Requires

2fa two-factor totp hotp two-factor authentication multi-factor tfa mfa multi-factor authentication

17/06 2016

v0.2.0

0.2.0.0

Vendor-agnostic two-factor authentication library

  Sources   Download

MIT proprietary GPL-3.0+

The Requires

 

The Development Requires

2fa two-factor totp hotp two-factor authentication multi-factor tfa mfa multi-factor authentication

13/06 2016

v0.1.0

0.1.0.0

Vendor-agnostic two-factor authentication library

  Sources   Download

MIT proprietary GPL-3.0+

The Requires

 

The Development Requires

2fa two-factor totp hotp two-factor authentication multi-factor tfa mfa multi-factor authentication