2017 © Pedro Peláez
 

library totp

Simple TOTP (RFC 6238)

image

texdc/totp

Simple TOTP (RFC 6238)

  • Thursday, February 22, 2018
  • by texdc
  • Repository
  • 1 Watchers
  • 0 Stars
  • 31 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

TOTP (RFC 6238)

TOTP is a simple, compact and bare-bones PHP class for calculating TOTP tokens using the SHA1 default, commonly used for two-factor authentication in mobile apps such as Google Authenticator. It comprises three public methods of which only one is necessary to call to get a token., (*1)

Usage

Simply call $totp->getOTP( $secret [, $digits = 6 [, $period = 30 [, $offset = null ]]] ) which returns a string holding the authentication token., (*2)

The other two functions are meant to be convenient utilities:, (*3)

$totp->genSecret( [ $length = 24 ] ) generates a TOTP-compatible pseudorandom secret in Base32 ASCII, returning a string holding the random secret., (*4)

$totp->genURI( $account, $secret [, $digits = null [, $period = null [, $issuer = '' ]]] ) returns a string holding an otpauth:// style URI providing the supplied parameters, which can be embedded in a QR code image., (*5)

NOTE: All arguments are validated and every method may throw an Assert\AssertionFailedException detailing the error., (*6)

License

TOTP is released under the Creative Commons BY-NC-SA 4.0 license., (*7)

Portions Copyright (c) 2014 Robin Leffman. The original source is available on github., (*8)

The Versions

22/02 2018

dev-master

9999999-dev

Simple TOTP (RFC 6238)

  Sources   Download

CC-BY-NC-SA-4.0 CC BY-NC-SA 4.0

The Requires

 

The Development Requires

2fa authenticate totp mfa 2factor

22/02 2018

v2.0.2

2.0.2.0

Simple TOTP (RFC 6238)

  Sources   Download

CC-BY-NC-SA-4.0

The Requires

 

The Development Requires

2fa authenticate totp mfa 2factor

22/02 2018

dev-develop

dev-develop

Simple TOTP (RFC 6238)

  Sources   Download

CC-BY-NC-SA-4.0 CC BY-NC-SA 4.0

The Requires

 

The Development Requires

2fa authenticate totp mfa 2factor

17/10 2017

v2.0.1

2.0.1.0

Simple TOTP (RFC 6238)

  Sources   Download

CC BY-NC-SA 4.0

The Requires

 

The Development Requires

2fa authenticate totp mfa 2factor

16/10 2017

v2.0.0

2.0.0.0

Simple TOTP (RFC 6238)

  Sources   Download

CC BY-NC-SA 4.0

The Requires

 

The Development Requires

2fa authenticate totp mfa

15/10 2017

v1.0.1

1.0.1.0

Simple TOTP (RFC 6238)

  Sources   Download

CC BY-NC-SA 4.0

The Requires

 

The Development Requires

2fa authenticate totp mfa

15/06 2016

v1.0.0

1.0.0.0

Simple TOTP (RFC 6238)

  Sources   Download

CC BY-NC-SA 4.0

The Requires

 

The Development Requires

2fa authenticate totp mfa