public static EncryptionUtil getInstance ( String key , String salt ) throws NoSuchAlgorithmException , UnsupportedEncodingException , InvalidKeySpecException { if ( instance == null ) { synchronized ( EncryptionUtil . class ) { if ( instance == null ) { instance = new EncryptionUtil ( ) ; generateKeyIfNotAvailable ( key , salt ) ; } } } return instance ; }
Gets the Encryptor .