+/**
+ * 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.
+ */
export default async function decrypt(content, password) {
const encodedPassword = new TextEncoder().encode(password);
+/**
+ * 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.
+ */
export default async function encrypt(plaintext, password) {
const encoder = new TextEncoder();
const encodedPlaintext = encoder.encode(plaintext);