Class SHA1

java.lang.Object
com.bytedesk.wechat.common.aes.SHA1

class SHA1 extends Object
SHA1 class 计算公众平台的消息签名接口.
  • 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