tiny-enc

1.0.2 • Public • Published

🔐 tiny-enc - Tiny text encryption for modern browsers

last commit bundle size version downloads license

Tiny text encryption library for browser. It does use SubtleCrypto and async/await so it requires a secure context and a modern browser.

<script type="module">
  import tinyEnc from "https://unpkg.com/tiny-enc";
  // use it as a module or just copy/paste the code

  await tinyEnc.encrypt("password", "Hello, World"); // KA+e+PmeSy0osLFTjTgrxFZAoLJ7iixh89G7TkuyHEQ=
  await tinyEnc.decrypt("password", "KA+e+PmeSy0osLFTjTgrxFZAoLJ7iixh89G7TkuyHEQ="); // Hello, World
</script>

Package Sidebar

Install

npm i tiny-enc

Weekly Downloads

2

Version

1.0.2

License

MIT

Unpacked Size

6.13 kB

Total Files

8

Last publish

Collaborators

  • rundik