Const
Converts serialized ciphertext to CipherParams, else assumed CipherParams already and returns ciphertext unchanged.
The ciphertext.
The formatting strategy to use to parse serialized ciphertext.
The unserialized ciphertext.
Decrypts serialized ciphertext.
The plaintext.
Encrypts a message.
A cipher params object.
var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
A cipher wrapper that returns ciphertext as a serializable cipher params object.