encrypt abstract method

String encrypt(
  1. String privKey,
  2. String pubKey,
  3. String text
)

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);