Interface ByteEncryptor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      byte[] decrypt​(byte[] encryptedMessage)
      Decrypt an encrypted message
      byte[] encrypt​(byte[] message)
      Encrypt the input message
    • Method Detail

      • encrypt

        byte[] encrypt​(byte[] message)
        Encrypt the input message
        Parameters:
        message - the message to be encrypted
        Returns:
        the result of encryption
      • decrypt

        byte[] decrypt​(byte[] encryptedMessage)
        Decrypt an encrypted message
        Parameters:
        encryptedMessage - the encrypted message to be decrypted
        Returns:
        the result of decryption