vendor/cryptojs-v3.0.2/components/cipher-core.js
function (cipher, ciphertext, key, cfg) {
            // Apply config defaults
            cfg = this.cfg.extend(cfg);

            // Convert string to CipherParams
            ciphertext = this._parse(ciphertext, cfg.format);

            // Decrypt
            var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);

            return plaintext;
        }
function (cipher, ciphertext, key, cfg) {
            // Apply config defaults
            cfg = this.cfg.extend(cfg);

            // Convert string to CipherParams
            ciphertext = this._parse(ciphertext, cfg.format);

            // Decrypt
            var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);

            return plaintext;
        }
function ( cipher , ciphertext , key , cfg ) { // Apply config defaults
 cfg = this . cfg . extend ( cfg ) ; // Convert string to CipherParams
 ciphertext = this . _parse ( ciphertext , cfg . format ) ; // Decrypt
 var plaintext = cipher . createDecryptor ( key , cfg ) . finalize ( ciphertext . ciphertext ) ; return plaintext ; }
Decrypts serialized ciphertext.

@param {Cipher} cipher The cipher algorithm to use.
@param {CipherParams|string} ciphertext The ciphertext to decrypt.
@param {WordArray} key The key.
@param {Object} cfg (Optional) The configuration options to use for this operation.

@return {WordArray} The plaintext.

@static

@example

var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
Decrypts serialized ciphertext .