类 DecryptAES

java.lang.Object
top.yqingyu.common.utils.DecryptAES

public class DecryptAES extends Object
  • 构造器详细资料

    • DecryptAES

      public DecryptAES()
  • 方法详细资料

    • encryptKeyByte

      public static byte[] encryptKeyByte(String key)
      加密key
      参数:
      key -
      返回:
    • encryptKeyByte

      public static byte[] encryptKeyByte(byte[] key)
      加密key
      参数:
      key -
      返回:
    • encryptKeyByte2

      public static byte[] encryptKeyByte2(byte[] key)
      加密key2
      参数:
      key -
      返回:
    • encryptKeyByte2

      public static byte[] encryptKeyByte2(QyMsg value)
      加密key2
      参数:
      value -
      返回:
    • encryptKeyByteBase64

      public static byte[] encryptKeyByteBase64(String key)
      加密key base64
      参数:
      key -
      返回:
    • decryptKeyByte

      public static byte[] decryptKeyByte(String encryptKey)
      解密key
      参数:
      encryptKey -
      返回:
    • decryptKeyByte

      public static byte[] decryptKeyByte(byte[] bytes)
      解密key
      参数:
      bytes -
      返回:
    • decryptBase64Key

      public static String decryptBase64Key(String encryptKey)
    • encryptAES

      public static byte[] encryptAES(String content, String keyStr)
      AES加密 +base64
      参数:
      content - 需要加密的内容
      keyStr - 加密密码
      返回:
    • decryptAES

      public static byte[] decryptAES(byte[] content, String keyStr)
      AES解密 + Base64
      参数:
      content - 待解密内容
      keyStr - 解密密钥
      返回: