Tiny text encryption library for browser. It does use SubtleCrypto and async/await so it requires a secure context and a modern browser.
<scripttype="module">importtinyEncfrom"https://unpkg.com/tiny-enc";// use it as a module or just copy/paste the codeawaittinyEnc.encrypt("password","Hello, World");// KA+e+PmeSy0osLFTjTgrxFZAoLJ7iixh89G7TkuyHEQ=awaittinyEnc.decrypt("password","KA+e+PmeSy0osLFTjTgrxFZAoLJ7iixh89G7TkuyHEQ=");// Hello, World</script>