Interface Encryptor


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

    Modifier and Type
    Method
    Description
    byte[]
    decrypt(byte[] bytes)
    Decrypts the given byte array.
    byte[]
    encrypt(byte[] bytes)
    Encrypts the given byte array.
  • Method Details

    • 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