Interface PublicPrivateEncryptionDecryption

All Known Implementing Classes:
PublicPrivateEncryptionDecryptionRSA, PublicPrivateEncryptionDecryptionRSAAESHybrid

public interface PublicPrivateEncryptionDecryption
Interface for different encryption/decryption methods.
Author:
Christian Fries
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    decrypt(PrivateKey key, byte[] ciphertext)
    decrypt.
    byte[]
    encrypt(PublicKey key, byte[] text)
    encrypt.
  • Method Details

    • encrypt

      byte[] encrypt(PublicKey key, byte[] text)

      encrypt.

      Parameters:
      key - a PublicKey object
      text - an array of bytes objects
      Returns:
      an array of bytes objects
    • decrypt

      byte[] decrypt(PrivateKey key, byte[] ciphertext)

      decrypt.

      Parameters:
      key - a PrivateKey object
      ciphertext - an array of bytes objects
      Returns:
      an array of bytes objects