GoEasy-OTP > 什么是GoEasy-OTP?
GoEasy-OTP(One-time password)是GoEasy对app key的安全保护措施,安全可靠,简单易用! 将会有效杜绝他人通过在页面上获取app key的方式,进行非法操作。
var goEasy = GoEasy.getInstance({
host:'hangzhou.goeasy.io',//应用所在的区域地址: 【hangzhou.goeasy.io |singapore.goeasy.io】
appkey: '您的Client key'
});
goEasy.connect({
otp:'您服务器端生成的OTP',
onSuccess: function () { //连接成功
console.log("GoEasy connect successfully.") //连接成功
},
onFailed: function (error) { //连接失败
console.log("Failed to connect GoEasy, code:"+error.code+ ",error:"+error.content);
},
onProgress:function(attempts) { //连接或自动重连中
console.log("GoEasy is connecting", attempts);
}
});
什么是GoEasy-OTP?
如何使用GoEasy-OTP?
验证GoEasy-OTP生成结果
Java生成GoEasy-OTP
PHP生成GoEasy-OTP
Python生成GoEasy-OTP
Ruby生成GoEasy-OTP
C#生成GoEasy-OTP