mirror of
https://gitee.com/dromara/MaxKey.git
synced 2025-12-07 09:28:49 +08:00
SmsOtpAuthnYunxinCheckSumBuilder
This commit is contained in:
parent
2e90f5788e
commit
2fb491b477
@ -55,7 +55,7 @@ public class SmsOtpAuthnYunxin extends SmsOtpAuthn {
|
||||
/*
|
||||
* 参考计算CheckSum的java代码,在上述文档的参数列表中,有CheckSum的计算文档示例
|
||||
*/
|
||||
String checkSum = SmsOtpAuthnCheckSumBuilder
|
||||
String checkSum = SmsOtpAuthnYunxinCheckSumBuilder
|
||||
.getCheckSum(APP_SECRET, NONCE, curTime);
|
||||
|
||||
// 设置请求的header
|
||||
|
||||
@ -2,7 +2,7 @@ package org.maxkey.crypto.password.opt.impl.sms.netease;
|
||||
|
||||
import java.security.MessageDigest;
|
||||
|
||||
public class SmsOtpAuthnCheckSumBuilder {
|
||||
public class SmsOtpAuthnYunxinCheckSumBuilder {
|
||||
// 计算并获取CheckSum
|
||||
public static String getCheckSum(String appSecret, String nonce, String curTime) {
|
||||
return encode("sha1", appSecret + nonce + curTime);
|
||||
Loading…
x
Reference in New Issue
Block a user