Interface Encryptor

  • All Known Implementing Classes:
    EncryptorImpl

    public interface Encryptor
    Responsible for encrypting/decrypting bytes. Implementations are intended to be thread-safe.
    • Method Detail

      • decrypt

        byte[] decrypt​(byte[] bytes)
        Decrypts the given byte array.
        Parameters:
        bytes - The encrypted bytes
        Returns:
        The decrypted bytes
      • encrypt

        byte[] encrypt​(byte[] bytes)
        Encrypts the given byte array.
        Parameters:
        bytes - The clear bytes
        Returns:
        The ecnrypted bytes