createAesCbcCryptoModule
Returns the recommended CryptoModule for encryption and decryption.
Encrypts new payloads with the AES-CBC cryptor and registers the legacy cryptor as a secondary decryptor, so payloads produced in the older format remain readable.
Parameters
cipherKey
Use a randomly generated key instead of a dictionary word to increase security.
randomIv
applies only to the legacy cryptor kept for decryption: whether data being decrypted in the legacy format is expected to carry a random initialization vector. The AES-CBC cryptor used for encryption always uses a random IV regardless of this flag.