tce__functions__otp_8php

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.
tce_functions_otp.php File Reference

Namespaces

 com\tecnick\tcexam\shared
 TCExam Shared Area.
 

Functions

 F_getRandomOTPkey ()
 
 F_decodeBase32 ($code)
 
 F_getOTP ($otpkey, $mtime=0)
 

Detailed Description

Functions for One Time Password (OTP).

Function Documentation

F_decodeBase32 (   $code)

Decode a Base32 encoded string.

Parameters
$code(string) Base32 code to be decoded.
Returns
Decoded key.

F_getOTP (   $otpkey,
  $mtime = 0 
)

Get a One Time Password for the specified secret key.

Parameters
$otpkey(string) One Time Password secret key.
$mtime(int) Reference time in microseconds.
Returns
OTP

F_getRandomOTPkey ( )

Return a random One Time Password Secret Key (Base32 encoded).

Returns
Base32 encoded key.

 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy