encrypt abstract method
Encrypts the text
using the private key privKey
of the sender and the public key pubKey
of the receiver.
Returns the encrypted message in the form of a string.
Implementation
String encrypt(String privKey, String pubKey, String text);