Encrypt Method
Encrypts the data.
Object Oriented Interface
public function doEncrypt();
Procedural Interface
ipworksencrypt_rc2_do_encrypt($res);
Remarks
This method will encrypt the specified data. The following properties are applicable:
- IV (required)
- Key (required)
- PaddingMode
- CipherMode
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.