Class CryptAdvice.DES

java.lang.Object
develop.toolkit.base.utils.CryptAdvice.DES
Enclosing class:
CryptAdvice

public static class CryptAdvice.DES extends Object
DES算法
  • Constructor Details

    • DES

      public DES()
  • Method Details

    • encrypt

      public static String encrypt(String original, String secretKey)
      加密
      Parameters:
      original - 原文
      secretKey - 密钥
      Returns:
      密文
    • decrypt

      public static String decrypt(String ciphertext, String secretKey) throws CryptException
      解密
      Parameters:
      ciphertext - 密文
      secretKey - 密钥
      Returns:
      原文
      Throws:
      CryptException