]> git.ardis.lu - static-encrypt/commitdiff
Fix a word
authorArdis Lu <ardisglu@gmail.com>
Sat, 25 Feb 2023 04:47:23 +0000 (20:47 -0800)
committerArdis Lu <ardisglu@gmail.com>
Sat, 25 Feb 2023 04:47:58 +0000 (20:47 -0800)
decrypt.js
encrypt.js

index 0e4e897c70bd0295a2ee50ba95683b706bb4f29c..409c15a8c9b25aa9550b64c17dc75c2f5cdd0470 100644 (file)
@@ -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<string>} A promise that resolves the plaintext.
+ * @returns {Promise<string>} A promise that resolves to the plaintext.
  */
 export default async function decrypt(content, password) {
   const encodedPassword = new TextEncoder().encode(password);
index f2c52ea7a4699a1074ce2779b4d0e5ecc90a6913..04e3e9717d16000df7ed7d96ceef9ed964fa9e23 100644 (file)
@@ -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<string>} A promise that resolves the ciphertext.
+ * @returns {Promise<string>} A promise that resolves to the ciphertext.
  */
 export default async function encrypt(plaintext, password) {
   const encoder = new TextEncoder();
This page took 0.039021 seconds and 4 git commands to generate.