类 ZLDecryptor

java.lang.Object
cn.zhxu.toys.cipher.ZLDecryptor
所有已实现的接口:
Decryptor

public class ZLDecryptor extends Object implements Decryptor
作者:
Administrator
  • 构造器详细资料

    • ZLDecryptor

      public ZLDecryptor()
  • 方法详细资料

    • init

      public void init(String secret)
      从接口复制的说明: Decryptor
      初始化
      指定者:
      init 在接口中 Decryptor
    • decrypt

      public byte[] decrypt(byte[] cipherBytes)
      从接口复制的说明: Decryptor
      解密
      指定者:
      decrypt 在接口中 Decryptor
      参数:
      cipherBytes - 密文
      返回:
      明文
    • decrypt

      public byte[] decrypt(byte[] secretBytes, byte[] cipherBytes)
      从接口复制的说明: Decryptor
      解密
      指定者:
      decrypt 在接口中 Decryptor
      参数:
      secretBytes - 密钥
      cipherBytes - 密文
      返回:
      明文
    • decrypt

      public String decrypt(String cipherText)
      从接口复制的说明: Decryptor
      解密
      指定者:
      decrypt 在接口中 Decryptor
      参数:
      cipherText - 密文
      返回:
      明文
    • decrypt

      public String decrypt(String secret, String cipherText)
      从接口复制的说明: Decryptor
      解密
      指定者:
      decrypt 在接口中 Decryptor
      参数:
      secret - 密钥
      cipherText - 密文
      返回:
      明文