Package com.bytedesk.wechat.common.aes
Class SHA1
java.lang.Object
com.bytedesk.wechat.common.aes.SHA1
SHA1 class
计算公众平台的消息签名接口.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SHA1
SHA1()
-
-
Method Details
-
getSHA1
public static String getSHA1(String token, String timestamp, String nonce, String encrypt) throws AesException 用SHA1算法生成安全签名- Parameters:
token
- 票据timestamp
- 时间戳nonce
- 随机字符串encrypt
- 密文- Returns:
- 安全签名
- Throws:
AesException
-