The encryption format (e.g., AES).
The encryption key in hexadecimal format.
The initialization vector in hexadecimal format.
The plaintext string to encrypt.
Whether to use padding (default: true).
The encrypted string in base64 format, or null
if encryption fails.
Encrypts a plaintext string using the specified format, key, and IV.