GoEasy-OTP > PHP生成GoEasy-OTP
public function goEasyOTP($secretKey){
$key = $secretKey;
list($t1, $t2) = explode(' ', microtime());
$text = (float)sprintf('%.0f', (floatval($t1) + floatval($t2)) * 1000);
$text = "000" . $text;
// $key='86726e4356dce2d3';
// $text = "0001490325990593";
return openssl_encrypt($text, 'AES-128-ECB', $key, 2, '');
}
secret key:86726e4356dce2d3
系统毫秒数:0001490325990593
GoEasy-otp:+rOKqbTZioistsdMrhon0A==
什么是GoEasy-OTP?
如何使用GoEasy-OTP?
验证GoEasy-OTP生成结果
Java生成GoEasy-OTP
PHP生成GoEasy-OTP
Python生成GoEasy-OTP
Ruby生成GoEasy-OTP
C#生成GoEasy-OTP