Class CryptManager


  • public class CryptManager
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      CryptManager()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.security.PublicKey byteToPublicKey​(byte[] p_75896_0_)  
      private static byte[] cipherData​(int p_75885_0_, java.security.Key p_75885_1_, byte[] p_75885_2_)  
      static javax.crypto.SecretKey decryptByteToSecretKey​(java.security.PrivateKey p_75887_0_, byte[] p_75887_1_)  
      static byte[] decryptUsingKey​(java.security.Key p_75889_0_, byte[] p_75889_1_)  
      private static byte[] digestData​(byte[]... p_244731_0_)  
      static byte[] digestData​(java.lang.String p_75895_0_, java.security.PublicKey p_75895_1_, javax.crypto.SecretKey p_75895_2_)  
      static byte[] encryptUsingKey​(java.security.Key p_75894_0_, byte[] p_75894_1_)  
      static java.security.KeyPair generateKeyPair()  
      static javax.crypto.SecretKey generateSecretKey()  
      static javax.crypto.Cipher getCipher​(int p_151229_0_, java.security.Key p_151229_1_)  
      private static javax.crypto.Cipher setupCipher​(int p_75886_0_, java.lang.String p_75886_1_, java.security.Key p_75886_2_)  
      • Methods inherited from class java.lang.Object

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

      • CryptManager

        public CryptManager()
    • Method Detail

      • digestData

        public static byte[] digestData​(java.lang.String p_75895_0_,
                                        java.security.PublicKey p_75895_1_,
                                        javax.crypto.SecretKey p_75895_2_)
                                 throws CryptException
        Throws:
        CryptException
      • digestData

        private static byte[] digestData​(byte[]... p_244731_0_)
                                  throws java.lang.Exception
        Throws:
        java.lang.Exception
      • byteToPublicKey

        public static java.security.PublicKey byteToPublicKey​(byte[] p_75896_0_)
                                                       throws CryptException
        Throws:
        CryptException
      • decryptByteToSecretKey

        public static javax.crypto.SecretKey decryptByteToSecretKey​(java.security.PrivateKey p_75887_0_,
                                                                    byte[] p_75887_1_)
                                                             throws CryptException
        Throws:
        CryptException
      • encryptUsingKey

        public static byte[] encryptUsingKey​(java.security.Key p_75894_0_,
                                             byte[] p_75894_1_)
                                      throws CryptException
        Throws:
        CryptException
      • decryptUsingKey

        public static byte[] decryptUsingKey​(java.security.Key p_75889_0_,
                                             byte[] p_75889_1_)
                                      throws CryptException
        Throws:
        CryptException
      • cipherData

        private static byte[] cipherData​(int p_75885_0_,
                                         java.security.Key p_75885_1_,
                                         byte[] p_75885_2_)
                                  throws CryptException
        Throws:
        CryptException
      • setupCipher

        private static javax.crypto.Cipher setupCipher​(int p_75886_0_,
                                                       java.lang.String p_75886_1_,
                                                       java.security.Key p_75886_2_)
                                                throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getCipher

        public static javax.crypto.Cipher getCipher​(int p_151229_0_,
                                                    java.security.Key p_151229_1_)
                                             throws CryptException
        Throws:
        CryptException