Class EncryptorImpl

    • Constructor Detail

      • EncryptorImpl

        public EncryptorImpl​(boolean defaultKey)
    • Method Detail

      • decrypt

        public byte[] decrypt​(byte[] bytes)
        Description copied from interface: Encryptor
        Decrypts the given byte array.
        Specified by:
        decrypt in interface Encryptor
        Parameters:
        bytes - The encrypted bytes
        Returns:
        The decrypted bytes
      • encrypt

        public byte[] encrypt​(byte[] bytes)
        Description copied from interface: Encryptor
        Encrypts the given byte array.
        Specified by:
        encrypt in interface Encryptor
        Parameters:
        bytes - The clear bytes
        Returns:
        The ecnrypted bytes