类 Decrypts

java.lang.Object
com.weicoder.common.crypto.base.BaseCrypt
com.weicoder.common.crypto.Decrypts
直接已知子类:
W.De

public class Decrypts extends BaseCrypt
对称解密类
作者:
WD
  • 构造器概要

    构造器
    构造器
    说明
     
  • 方法概要

    修饰符和类型
    方法
    说明
    static byte[]
    aes(byte[] b)
    针对encrypt方法的解密 AES算法
    static byte[]
    aes(byte[] b, String keys)
    针对encrypt方法的解密 AES算法
    static byte[]
    decrypt(byte[] b)
    解密字符串
    static byte[]
    decrypt(byte[] b, String keys)
    解密字符串
    static byte[]
    解密字符串
    static String
    解密字符串
    static byte[]
    des(byte[] b)
    针对encode方法的解密 DES算法
    static byte[]
    des(byte[] b, String keys)
    针对encode方法的解密 DES算法
    static byte[]
    rc4(byte[] b)
    针对encrypt方法的解密 RC4算法
    static byte[]
    rc4(byte[] b, String keys)
    针对encrypt方法的解密 RC4算法
    static byte[]
    token(String info)
    解密Token 使用

    从类继承的方法 com.weicoder.common.crypto.base.BaseCrypt

    doFinal, doFinal

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • Decrypts

      public Decrypts()
  • 方法详细资料

    • token

      public static byte[] token(String info)
      解密Token 使用
      参数:
      info - token信息串
      返回:
      字节数组
    • decryptString

      public static String decryptString(String text)
      解密字符串
      参数:
      text - 要解密的字符串
      返回:
      解密后的字符串
    • decrypt

      public static byte[] decrypt(String text)
      解密字符串
      参数:
      text - 要解密的字符串
      返回:
      解密后的字符串
    • decrypt

      public static byte[] decrypt(byte[] b)
      解密字符串
      参数:
      b - 要解密的字节数组
      返回:
      解密后的字节数组
    • decrypt

      public static byte[] decrypt(byte[] b, String keys)
      解密字符串
      参数:
      b - 要解密的字节数组
      keys - 键
      返回:
      解密后的字节数组
    • des

      public static byte[] des(byte[] b)
      针对encode方法的解密 DES算法
      参数:
      b - 需要解密的字节数组
      返回:
      返回解密后的字符串
    • des

      public static byte[] des(byte[] b, String keys)
      针对encode方法的解密 DES算法
      参数:
      b - 需要解密的字节数组
      keys - 键
      返回:
      返回解密后的字符串
    • aes

      public static byte[] aes(byte[] b)
      针对encrypt方法的解密 AES算法
      参数:
      b - 需要解密的字节数组
      返回:
      返回解密后的字符串 text为空或发生异常返回原串
    • aes

      public static byte[] aes(byte[] b, String keys)
      针对encrypt方法的解密 AES算法
      参数:
      b - 需要解密的字节数组
      keys - 键
      返回:
      返回解密后的字符串 text为空或发生异常返回原串
    • rc4

      public static byte[] rc4(byte[] b)
      针对encrypt方法的解密 RC4算法
      参数:
      b - 需要解密的字节数组
      返回:
      返回解密后的字符串 text为空或发生异常返回原串
    • rc4

      public static byte[] rc4(byte[] b, String keys)
      针对encrypt方法的解密 RC4算法
      参数:
      b - 需要解密的字节数组
      keys - 键
      返回:
      返回解密后的字符串 text为空或发生异常返回原串