Interface PublicPrivateEncryptionDecryption
- All Known Implementing Classes:
PublicPrivateEncryptionDecryptionRSA,PublicPrivateEncryptionDecryptionRSAAESHybrid
public interface PublicPrivateEncryptionDecryption
Interface for different encryption/decryption methods.
- Author:
- Christian Fries
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]decrypt(PrivateKey key, byte[] ciphertext) decrypt.byte[]encrypt.
-
Method Details
-
encrypt
encrypt.
- Parameters:
key- aPublicKeyobjecttext- an array of bytes objects- Returns:
- an array of bytes objects
-
decrypt
decrypt.
- Parameters:
key- aPrivateKeyobjectciphertext- an array of bytes objects- Returns:
- an array of bytes objects
-