From bef15c7d4c03f9e7def2f409fae38d7adf9f8cce Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 24 Feb 2023 20:47:23 -0800 Subject: [PATCH] Fix a word --- decrypt.js | 2 +- encrypt.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/decrypt.js b/decrypt.js index 0e4e897..409c15a 100644 --- a/decrypt.js +++ b/decrypt.js @@ -2,7 +2,7 @@ * Decrypt an encrypted string. * @param {string} content - The ciphertext to decrypt. * @param {string} password - The password used to encrypt the string. - * @returns {Promise} A promise that resolves the plaintext. + * @returns {Promise} A promise that resolves to the plaintext. */ export default async function decrypt(content, password) { const encodedPassword = new TextEncoder().encode(password); diff --git a/encrypt.js b/encrypt.js index f2c52ea..04e3e97 100644 --- a/encrypt.js +++ b/encrypt.js @@ -2,7 +2,7 @@ * Encrypt a string. * @param {string} plaintext - The string to encrypt. * @param {string} password - The password used to encrypt the string. - * @returns {Promise} A promise that resolves the ciphertext. + * @returns {Promise} A promise that resolves to the ciphertext. */ export default async function encrypt(plaintext, password) { const encoder = new TextEncoder(); -- 2.47.3