encrypt Method
Encrypts the data.
Syntax
def encrypt() -> None: ...
Remarks
This method will encrypt the specified data. The following properties are applicable:
- iv (required)
- key (required)
- padding_mode
- cipher_mode
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:
- output_file
- output_message: The output data is written to this property if no other destination is specified.