Encrypt Method
Encrypts the input data using the recipient's public key.
Object Oriented Interface
public function doEncrypt();
Procedural Interface
ipworksencrypt_rsa_do_encrypt($res);
Remarks
This method encrypts the input data using the public key specified in the RecipientKey* properties. Alternatively, a certificate may be specified by setting RecipientCert
Input and Output Properties
The class will determine the source and destination of the input and output based on which properties are set.
The order in which the input properties are checked is as follows:
When a valid source is found the search stops. The order in which the output properties are checked is as follows:- OutputFile
- OutputMessage: The output data is written to this property if no other destination is specified.