files-shared-code-tce-functions-otp

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

Tags
file

Functions for One Time Password (OTP).

author

Nicola Asuni

since
2012-01-09

Table of Contents

Functions

F_getRandomOTPkey()  : Base32
Return a random One Time Password Secret Key (Base32 encoded).
F_decodeBase32()  : Decoded
Decode a Base32 encoded string.
F_getOTP()  : OTP
Get a One Time Password for the specified secret key.

Functions

F_getRandomOTPkey()

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

F_getRandomOTPkey() : Base32
Return values
Base32

encoded key.

F_decodeBase32()

Decode a Base32 encoded string.

F_decodeBase32( $code) : Decoded
Parameters
$code :

(string) Base32 code to be decoded.

Return values
Decoded

key.

F_getOTP()

Get a One Time Password for the specified secret key.

F_getOTP( $otpkey[,  $mtime = 0 ]) : OTP
Parameters
$otpkey :

(string) One Time Password secret key.

$mtime : = 0

(int) Reference time in microseconds.

Return values
OTP
On this page
 

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