From: Ardis Lu Date: Sat, 25 Feb 2023 04:47:23 +0000 (-0800) Subject: Fix a word X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=bef15c7d4c03f9e7def2f409fae38d7adf9f8cce;p=static-encrypt Fix a word --- 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();