Class EncryptionUtil

java.lang.Object
org.ujmp.core.util.EncryptionUtil

public abstract class EncryptionUtil extends Object
  • Field Details

    • IV16

      public static final byte[] IV16
  • Constructor Details

    • EncryptionUtil

      public EncryptionUtil()
  • Method Details

    • aesEncrypt

      public static byte[] aesEncrypt(byte[] input, Key key) throws Exception
      Throws:
      Exception
    • aesEncrypt

      public static byte[] aesEncrypt(byte[] input, byte[] key) throws Exception
      Throws:
      Exception
    • aesEncrypt

      public static byte[] aesEncrypt(byte[] input, byte[] key, byte[] iv) throws Exception
      Throws:
      Exception
    • aesEncrypt

      public static byte[] aesEncrypt(byte[] input, Key secret, byte[] iv) throws Exception
      Throws:
      Exception
    • aesDecrypt

      public static byte[] aesDecrypt(byte[] input, Key key) throws Exception
      Throws:
      Exception
    • aesDecrypt

      public static byte[] aesDecrypt(byte[] input, byte[] key) throws Exception
      Throws:
      Exception
    • aesDecrypt

      public static byte[] aesDecrypt(byte[] input, byte[] key, byte[] iv) throws Exception
      Throws:
      Exception
    • aesDecrypt

      public static byte[] aesDecrypt(byte[] input, Key secret, byte[] iv) throws Exception
      Throws:
      Exception