Lines Matching refs:ciphertext
15 * @returns {Promise<String>} Encrypted ciphertext base64 encoded
31 * Decrypts OpenSSL ciphertext
33 * @param {String} ciphertext Base64 encoded ciphertext to be decrypted.
34 * @param {String} password Password to use to decrypt ciphertext
38 async decrypt(ciphertext, password, legacy = false) {
39 const {salt, cipher} = this.parseOpenSSLCryptString(ciphertext);
62 * @param {String} ciphertext Base64 encoded ciphertext to be decrypted.
63 * @param {String} password Password to use to decrypt ciphertext
66 async autodecrypt(ciphertext, password) {
68 return await this.decrypt(ciphertext, password);
72 return await this.decrypt(ciphertext, password, true);