Class MGL_AES

java.lang.Object
tech.mgl.core.c.MGL_AES

public class MGL_AES extends Object
new
  • Constructor Details

    • MGL_AES

      public MGL_AES()
  • Method Details

    • generateAESKey

      public static SecretKey generateAESKey()
    • getAESKeyByBase64String

      public static SecretKey getAESKeyByBase64String(String keyBase64)
    • generateIV

      public static byte[] generateIV(int length)
    • bytesToHex

      public static String bytesToHex(byte[] bytes)
    • encrypt

      public static String encrypt(String plaintext, String key)
    • encrypt

      public static String encrypt(String plaintext, Key key)
    • encrypt

      public static String encrypt(String plaintext, Key key, String iVBase64)
    • decrypt

      public static String decrypt(String ciphertext, String key)
    • decrypt

      public static String decrypt(String ciphertext, Key key)
    • decrypt

      public static String decrypt(String ciphertext, String key, String ivBase64)
    • decrypt

      public static String decrypt(String ciphertext, Key key, String ivBase64)