Class EncryptionUtil


  • public abstract class EncryptionUtil
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static byte[] IV16  
    • Constructor Summary

      Constructors 
      Constructor Description
      EncryptionUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static byte[] aesDecrypt​(byte[] input, byte[] key)  
      static byte[] aesDecrypt​(byte[] input, byte[] key, byte[] iv)  
      static byte[] aesDecrypt​(byte[] input, java.security.Key key)  
      static byte[] aesDecrypt​(byte[] input, java.security.Key secret, byte[] iv)  
      static byte[] aesEncrypt​(byte[] input, byte[] key)  
      static byte[] aesEncrypt​(byte[] input, byte[] key, byte[] iv)  
      static byte[] aesEncrypt​(byte[] input, java.security.Key key)  
      static byte[] aesEncrypt​(byte[] input, java.security.Key secret, byte[] iv)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • IV16

        public static final byte[] IV16
    • Constructor Detail

      • EncryptionUtil

        public EncryptionUtil()
    • Method Detail

      • aesEncrypt

        public static byte[] aesEncrypt​(byte[] input,
                                        java.security.Key key)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • aesEncrypt

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

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

        public static byte[] aesEncrypt​(byte[] input,
                                        java.security.Key secret,
                                        byte[] iv)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • aesDecrypt

        public static byte[] aesDecrypt​(byte[] input,
                                        java.security.Key key)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception
      • aesDecrypt

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

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

        public static byte[] aesDecrypt​(byte[] input,
                                        java.security.Key secret,
                                        byte[] iv)
                                 throws java.lang.Exception
        Throws:
        java.lang.Exception