tce_functions_otp.php

tce_functions_otp.php source file reference

Package: com\tecnick\tcexam\shared

Tags

  • file: Functions for One Time Password (OTP).
  • author: Nicola Asuni
  • since: 2012-01-09

Functions

F_getRandomOTPkey()

File: tce_functions_otp.php line 27

F_getRandomOTPkey() : Base32

Return values

Base32 —

encoded key.

F_decodeBase32()

File: tce_functions_otp.php line 45

F_decodeBase32(mixed $code) : Decoded

Parameters

  • $code : mixed: (string) Base32 code to be decoded.

Return values

Decoded —

key.

F_getOTP()

File: tce_functions_otp.php line 75

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

Parameters

  • $otpkey : mixed: (string) One Time Password secret key.
  • $mtime : mixed = 0: (int) Reference time in microseconds.

Return values

OTP