FOFEncryptTotp::getCode
Gets the TOTP passcode for a given secret key $secret and a given UNIX timestamp $time
Signature
public function getCode(string
$secret,
[int
$time = null] )
Parameters
-
$secret
- The Base32-encoded secret key
-
$time
- UNIX timestamp
Returns
- string