Skip to content

Bonscho/php-simple-oath

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Akita_OATH
======================================================
This is php OATH One Time Passwords Library.

OATH : http://www.openauthentication.org/
HOTP : http://tools.ietf.org/html/rfc4226
TOTP : http://tools.ietf.org/html/rfc6238

Usage
------------------------------------------------------
$secret is raw secret(not Base32 encoded).
$counter is used HOTP.
    
$oath = new oath();
    
// Generate HOTP 
$hotp = $oath->hotp($secret, $counter);
    
// HOTP Validation
$status = $oath->validateHotp($hotp, $secret, $counter);
    
// Generate TOTP
$totp = $oath->totp($secret);
    
// TOTP Validation
$status = $oath->validateTotp($totp, $secret);

AUTHOR
------------------------------------------------------
@ritou ritou.06@gmail.com

LISENCE
------------------------------------------------------
MIT Lisense.

About

OATH One Time Password Utility Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%