{"_id":"@47ng/simple-e2ee","_rev":"4-f131725ceea6048b77e913720c604893","name":"@47ng/simple-e2ee","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.0":{"name":"@47ng/simple-e2ee","version":"1.0.0","description":"Simple E2EE for web apps","main":"dist/index.js","license":"MIT","author":{"name":"François Best","email":"contact@francoisbest.com","url":"https://francoisbest.com"},"repository":{"type":"git","url":"git+https://github.com/47ng/simple-e2ee.git"},"keywords":["e2ee","tweetnacl"],"publishConfig":{"access":"public"},"scripts":{"test":"jest --coverage","test:watch":"jest --watch","build:clean":"rm -rf ./dist","build:ts":"tsc","build":"run-s build:clean build:ts","ci":"run-s build test"},"dependencies":{"@47ng/codec":"^1.0.0","tweetnacl":"^1.0.3"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@types/jest":"^26.0.14","@types/node":"^14.11.2","commitlint":"^11.0.0","husky":"^4.3.0","jest":"^26.4.2","npm-run-all":"^4.1.5","ts-jest":"^26.4.0","ts-node":"^9.0.0","typescript":"^4.0.3"},"jest":{"verbose":true,"preset":"ts-jest/presets/js-with-ts","testEnvironment":"./tests/browser.env.js"},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"],"rules":{"type-enum":[2,"always",["build","chore","ci","clean","doc","feat","fix","perf","ref","revert","style","test"]],"subject-case":[0,"always","sentence-case"],"body-leading-blank":[2,"always",true]}},"gitHead":"1c3b4baa8d72a80ba0c9d45307fac328eb16aec0","bugs":{"url":"https://github.com/47ng/simple-e2ee/issues"},"homepage":"https://github.com/47ng/simple-e2ee#readme","_id":"@47ng/simple-e2ee@1.0.0","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lZ0us1EQYcDdZUgDoOim0EQq4U+FSQWlWNdQEe/0aBK0cPFX6/+/REN4uebNoLe+PVcKjCmwR7gSmBhsmN1Ijw==","shasum":"06cda7f1f92cf48812f2b0ab22da346e51188aea","tarball":"https://registry.npmjs.org/@47ng/simple-e2ee/-/simple-e2ee-1.0.0.tgz","fileCount":6,"unpackedSize":9957,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbyreCRA9TVsSAnZWagAAOfkP/ifoDBCDENAzEZ0KxotQ\nO8LFaffzEvw/u6A+g1dGlWpAezeIf5JCE8a1TP/xAm60GhrI2v9brCz2C+LZ\nhK+K+Bzvw4K+IZJrAilMUkg6Lz4l2V6zFyFLF2avyhPEFnEgNToRZlzr1iz3\nyr3HFoHw/jGxWd88uhCEJQERs/s7/xOb9omzdRuChkDe14eqpVckmXVsU0dq\nHSnknIIqyOTZNxwVqvztYTbjj45RJ9EQpACVHcRagoHZK8Qq7cIGU6xDyLW0\nbu4DprtP216kiPAJjKQQy9D+8IcXhbDe9oRj8B9AeAyzxhqF8aily4L8KSeC\n3qnG8e8rI1n/RdtXZP7Z9wJvexgq6oxUMwOqCFor067eJVvQOzlUjJoq0rn5\nZ6CSySbKyOMBtk8tYS6u/cDUcqk/Hx0ovj3ZUvjPeO8iIMGGHySiKi2m7Kr8\nGVxvou/BuZwNLim5ejcdrWnrKeIeG6c3AYHhO+vOSmfVK1zMVhnJbHN5Vadu\nyvtJMoQ26aW7UU7420WbC2FHpgqaJhQXPaoam4pf9RvdOjeggcdpbT7GSFt9\nAxyIH4mdtGVwOBH2AG9nnDO9WW8E+7aoVV8TB9lQP1qYfg8dTsqJWsZ2wBl0\n/EXN9xqGyt0r5uX8lYzpQVCEy2J2E5oFdLx6Da4Aleo9/L0THFF2CvIyARA5\nRitu\r\n=4WSz\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvpcql3fRoicqOH3EEVMHdM9lhOYO026luPKq8KfXKywIgUhm3RBEaJs5QAkPJVUk4d6Crsefynn2PamXPIQ+R4Zc="}]},"maintainers":[{"name":"franky47","email":"accounts@francoisbest.com"}],"_npmUser":{"name":"franky47","email":"accounts@francoisbest.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-e2ee_1.0.0_1601120989521_0.017208776848358642"},"_hasShrinkwrap":false},"1.0.1":{"name":"@47ng/simple-e2ee","version":"1.0.1","description":"Simple E2EE for web apps","main":"dist/index.js","license":"MIT","author":{"name":"François Best","email":"contact@francoisbest.com","url":"https://francoisbest.com"},"repository":{"type":"git","url":"git+https://github.com/47ng/simple-e2ee.git"},"keywords":["e2ee","tweetnacl"],"publishConfig":{"access":"public"},"scripts":{"test":"jest --coverage","test:watch":"jest --watch","build:clean":"rm -rf ./dist","build:ts":"tsc","build":"run-s build:clean build:ts","ci":"run-s build test"},"dependencies":{"@47ng/codec":"^1.0.0","tweetnacl":"^1.0.3"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@types/jest":"^26.0.14","@types/node":"^14.11.2","commitlint":"^11.0.0","husky":"^4.3.0","jest":"^26.4.2","npm-run-all":"^4.1.5","ts-jest":"^26.4.0","ts-node":"^9.0.0","typescript":"^4.0.3"},"jest":{"verbose":true,"preset":"ts-jest/presets/js-with-ts","testEnvironment":"./tests/browser.env.js"},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"],"rules":{"type-enum":[2,"always",["build","chore","ci","clean","doc","feat","fix","perf","ref","revert","style","test"]],"subject-case":[0,"always","sentence-case"],"body-leading-blank":[2,"always",true]}},"gitHead":"bd9a1970a578f951c46ed874e201a24e205b4f35","bugs":{"url":"https://github.com/47ng/simple-e2ee/issues"},"homepage":"https://github.com/47ng/simple-e2ee#readme","_id":"@47ng/simple-e2ee@1.0.1","_nodeVersion":"10.22.1","_npmVersion":"6.14.6","dist":{"integrity":"sha512-5pQJmuhdcWbxROLmGOEQnPEFZKo49ZnWy3WMpscKweReCEunArePZRM+YD1E2zI7VjwOF5yURy7sw91U+IhS0A==","shasum":"741a2b958caee4b31dc4b8562b8506e7f722befb","tarball":"https://registry.npmjs.org/@47ng/simple-e2ee/-/simple-e2ee-1.0.1.tgz","fileCount":6,"unpackedSize":9889,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfd0CcCRA9TVsSAnZWagAAUl8QAKM7bTi73xxVEwsGKbHZ\nd+CSnOMuzBQe6k6mI4/yJybMLUkBobS6up/tkVuAY76O7Cj2q9JZUXRD+MzK\n9VSE82Qf7roe9Zwc3A42by0NMl7GN7PA5lo6P745O8kdXIuHfRaOFFLfx4Cd\nmj/jbgcH0Id8f3ohtV52GbMFqb+Ekl14CHyJEyEUNIHHPtZbuQschOhH0F3/\nOao5rsWAKcWuI1SpjzxmedzzfNUnBh+o0Ku/wL5Cb6pxGyxQ6/+I0/M3eiYh\nIiNQnIc7F8VGPllYGMsYyK7LbVcWao4YLiTR89CVMeEoRRFH5R1NaAlvVj2n\njZ4P7DmjDbIkesJ/TPal62XZR2EB8HJzjbcauXQhlQN2voVtLtGNnWvJDTpy\nfzO3CqXu+MuIDlSVJRuln5sAOZ7NvK8pUS4EMlXj03OPu6Sz5mMErZAN41tr\nXl8Yu/tOQFrOI57mgjWtBShrtnsM5R9YOjG5brapuUBDZB9BXcyi9a7llUgI\nCe6z+JJlM/lg6Qr7Y/CsTAd9qDvlTJdncgOtsRoQPY+vY+LtY2rbfvJsuav6\nEMtKPS7wEFJY7dARJ7wSEVGAspcN/bQMe2A9GjteiWbYIJxiuZCOTScHiSiS\n5W2wdwmn1i1sFoLN8Xs8VOE1d9JVYp5SaCPs1L741+Kl5qzJwmSGm8DpNq2w\nf1uN\r\n=IOJQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnA8ESPWc50g6deFgCtR0pufXML/95aXLIaUHCLqAiKAiAeM3XNxxhopAHfTTO8VPDy3/lEbNKBFmRsYdjuZkykqg=="}]},"maintainers":[{"name":"franky47","email":"accounts@francoisbest.com"}],"_npmUser":{"name":"franky47","email":"accounts@francoisbest.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-e2ee_1.0.1_1601650837009_0.7051292698183225"},"_hasShrinkwrap":false},"1.0.2":{"name":"@47ng/simple-e2ee","version":"1.0.2","description":"Simple E2EE for web apps","main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","author":{"name":"François Best","email":"contact@francoisbest.com","url":"https://francoisbest.com"},"repository":{"type":"git","url":"git+https://github.com/47ng/simple-e2ee.git"},"keywords":["e2ee","tweetnacl"],"publishConfig":{"access":"public"},"scripts":{"test":"jest --coverage","test:watch":"jest --watch","build:clean":"rm -rf ./dist","build:ts":"tsc","build":"run-s build:clean build:ts","ci":"run-s build test"},"dependencies":{"@47ng/codec":"^1.0.0","tweetnacl":"^1.0.3"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@types/jest":"^26.0.15","@types/node":"^14.14.5","commitlint":"^11.0.0","husky":"^4.3.0","jest":"^26.6.1","npm-run-all":"^4.1.5","ts-jest":"^26.4.3","ts-node":"^9.0.0","typescript":"^4.0.5"},"jest":{"verbose":true,"preset":"ts-jest/presets/js-with-ts","testEnvironment":"./tests/browser.env.js"},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"],"rules":{"type-enum":[2,"always",["build","chore","ci","clean","doc","feat","fix","perf","ref","revert","style","test"]],"subject-case":[0,"always","sentence-case"],"body-leading-blank":[2,"always",true]}},"gitHead":"b0fcec66831b31ae8bce6e6c70d1f84338acf390","bugs":{"url":"https://github.com/47ng/simple-e2ee/issues"},"homepage":"https://github.com/47ng/simple-e2ee#readme","_id":"@47ng/simple-e2ee@1.0.2","_nodeVersion":"12.20.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-hMnCBz7VzhWQXP34rNZRiM2bHg/qsJvV3oRB6wtTjlZtIoOnk64aAKMcIK8dmdZUBMQhcZPpVlfIXiMxXE5pxA==","shasum":"e3505586f072c39a2cc2bcc8cd03bb32350c5f10","tarball":"https://registry.npmjs.org/@47ng/simple-e2ee/-/simple-e2ee-1.0.2.tgz","fileCount":6,"unpackedSize":9919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf4kz2CRA9TVsSAnZWagAAuZgP/A0MF6AR1JzEC3bWQDIS\nDNznm5jJNHekFscrdt1aEa9/Egcmy34Ww708yYbbFVU/BBbhApY5VPW3XIUt\nCmMs5R5cu1GIJOSKpzA/7eVAU+sVZt8pTk2msGf2zaNJEe0culjMBeKsZLRA\nXRxZqSeLM5gT7RjnHues5WQxjfPLN4dZMQQgTEgGLDn/JryS5q56xzKQDK8D\ncXYXbVhjT9oCD5vKHD9krHsUSbKUAbPZZqHrRKV7SNE2uu+W0mNmG/fKXg5E\nsIZ5KyFaxauPS/PF8yEcu4A0m5iI6j2HOkIr3ya7zXVlRWD2LIzmcM3yEUM/\n6LyDpHGcxwtn+2vw9bR6uQKE6iXleOzVFT2CGIhpoTAI7rJmkCHTe10Chdxt\nnN3g7HTRZQHh+9ijr7sgcE3CgBJ6tG3RAQVrrqGfbtsyYY4t0CCxraXphhn7\nu6vvoj3fZdS6echRUo3bwQ0Xa+GY4ZHeIuwU0EKvzLm2AeuVebgedxPaGINZ\ntW5F4P2Q3npB6U+p99jHN/lwbqmtZAszHO/dU0TSaEd6qFW90ILUOzq2qt/B\nOIb0xfQ9C6tQtVQJqNsYHT9Y7t5T1Ka3v8hHkvrDyluxVwW5zncYGTbc1IxL\nGHCHZQPKZxWCIGx1b8X2qUQiCJOV8R8yYIkILrIQw0l/Ge1O5IF+l31tjN6W\nysg/\r\n=U3Wk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHkj+2Jkp/8EL9oavU6woynBQ85TU8G74yQnwgZj31hIAiEAjtoCIDu3FRGAW8GL8y4H27l/YowW96O05Si9PMm8jr8="}]},"_npmUser":{"name":"franky47","email":"accounts@francoisbest.com"},"directories":{},"maintainers":[{"name":"franky47","email":"accounts@francoisbest.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-e2ee_1.0.2_1608666358484_0.7790380376224035"},"_hasShrinkwrap":false},"1.1.0":{"name":"@47ng/simple-e2ee","version":"1.1.0","description":"Simple E2EE for web apps","main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","author":{"name":"François Best","email":"contact@francoisbest.com","url":"https://francoisbest.com"},"repository":{"type":"git","url":"git+https://github.com/47ng/simple-e2ee.git"},"keywords":["e2ee","tweetnacl"],"publishConfig":{"access":"public"},"scripts":{"test":"jest --coverage","test:watch":"jest --watch","build:clean":"rm -rf ./dist","build:ts":"tsc","build":"run-s build:clean build:ts","ci":"run-s build test"},"dependencies":{"@47ng/codec":"^1.0.0","tweetnacl":"^1.0.3"},"devDependencies":{"@commitlint/config-conventional":"^11.0.0","@types/jest":"^26.0.15","@types/node":"^14.14.5","commitlint":"^12.0.1","husky":"4.x","jest":"^26.6.1","npm-run-all":"^4.1.5","ts-jest":"^26.4.3","ts-node":"^9.0.0","typescript":"^4.0.5"},"jest":{"verbose":true,"preset":"ts-jest/presets/js-with-ts","testEnvironment":"./tests/browser.env.js"},"prettier":{"arrowParens":"avoid","semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"commitlint":{"extends":["@commitlint/config-conventional"],"rules":{"type-enum":[2,"always",["build","chore","ci","clean","doc","feat","fix","perf","ref","revert","style","test"]],"subject-case":[0,"always","sentence-case"],"body-leading-blank":[2,"always",true]}},"gitHead":"f072f6ba6ba657ee11636f62ff444f8ed60766a9","bugs":{"url":"https://github.com/47ng/simple-e2ee/issues"},"homepage":"https://github.com/47ng/simple-e2ee#readme","_id":"@47ng/simple-e2ee@1.1.0","_nodeVersion":"12.20.1","_npmVersion":"6.14.10","dist":{"integrity":"sha512-fhf9gYvbv4Fcd9utcdKWNRW9FlobHprYZyMo971VjUZ6Ec9LLg4CaFbInV0tVNwKmLVRag3oyok9zG8ZzqLfFQ==","shasum":"044446f3c76b073d8f034ff03540cc4368f3ada1","tarball":"https://registry.npmjs.org/@47ng/simple-e2ee/-/simple-e2ee-1.1.0.tgz","fileCount":6,"unpackedSize":13048,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgS53qCRA9TVsSAnZWagAANE0P/i6Pzd2Y9LCea67FrMK/\nVAaZjPC6J5NQIgGcJd6VVc0th+72udRju+xGr9Ndxk++GN26X2Ccy6V81pXf\nR/6l9zfobEEg2SnBOnWqUWaF8RvcHHLyYj9NZuL5V9xHaeFMbC+TdJUpoCkj\ndWqckvG/OYw4v/43o/HDRaR9TtrBQAuDqd4sTrRga6kQwFRcjRp8bIuT/Uh5\nm0NUaPST0I7TcureVLhuq01PhLoBMY2eVDijMs5KAg/yC14M3cGP0g2lJA3Z\naSy5MEx1x7XXzYJAA1dbYBLGfIj7TDMOAwRYW4VYgQdBUcjANPLD5WaHDKwG\n5+rWlr1LO8pjwVsJ3Ygjqr6HLZhydFcRyA/ysRHZg1nrEGBZVZwN8IvdADzU\n4CvWBNNVi1Uu71Oms9SpQkHTV4Ure6JVLWTdFhPQl3MQ7Gh7P3D1Xg/HsLPv\nxndU7Ii90PmlhGlaBCzzRBCI7jiQUXGfs6vNmOG8QM99SXn9IuDG7sypHWvO\nD5ndx84tiPoX9EsZsrneIBny+dMkG8azIWkCn2xgh8835VM9vpo7Q+Tl0utQ\n7LDtLPmrW4cpgVJj5S17/AEVVA8c3CDiNt4SwufXApXiOasf5EfA3ny0DNlf\n6x1ARGiV2twHj6s0r1VVCw7MJ1i+4wAiJB93aFfKp7szPy0zYDv2VfXjPc36\n7IrL\r\n=Zmjo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGfbwrxMucJDsR/zxmq4koKRUI0eTO2krIPKs73CNFlgIgMv7rD1y4t/NOxZwqU//12CSaxM/zh2It2LIhTP+omuQ="}]},"_npmUser":{"name":"franky47","email":"accounts@francoisbest.com"},"directories":{},"maintainers":[{"name":"franky47","email":"accounts@francoisbest.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/simple-e2ee_1.1.0_1615568362105_0.04486555421815086"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-26T11:49:49.342Z","1.0.0":"2020-09-26T11:49:49.670Z","modified":"2022-04-04T10:45:57.555Z","1.0.1":"2020-10-02T15:00:44.358Z","1.0.2":"2020-12-22T19:45:58.598Z","1.1.0":"2021-03-12T16:59:22.264Z"},"maintainers":[{"name":"franky47","email":"accounts@francoisbest.com"}],"description":"Simple E2EE for web apps","homepage":"https://github.com/47ng/simple-e2ee#readme","keywords":["e2ee","tweetnacl"],"repository":{"type":"git","url":"git+https://github.com/47ng/simple-e2ee.git"},"author":{"name":"François Best","email":"contact@francoisbest.com","url":"https://francoisbest.com"},"bugs":{"url":"https://github.com/47ng/simple-e2ee/issues"},"license":"MIT","readme":"# `@47ng/simple-e2ee`\n\n[![NPM](https://img.shields.io/npm/v/@47ng/simple-e2ee?color=red)](https://www.npmjs.com/package/@47ng/simple-e2ee)\n[![MIT License](https://img.shields.io/github/license/47ng/simple-e2ee.svg?color=blue)](https://github.com/47ng/simple-e2ee/blob/next/LICENSE)\n[![Continuous Integration](https://github.com/47ng/simple-e2ee/workflows/Continuous%20Integration/badge.svg?branch=next)](https://github.com/47ng/simple-e2ee/actions)\n[![Coverage Status](https://coveralls.io/repos/github/47ng/simple-e2ee/badge.svg?branch=next)](https://coveralls.io/github/47ng/simple-e2ee?branch=next)\n[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=47ng/simple-e2ee)](https://dependabot.com)\n\nSimple end-to-end encryption for web apps. Inspired from [Excalidraw](https://excalidraw.com) and [Firefox Send](https://github.com/mozilla/send) (RIP).\n\n## How it works\n\nYou encrypt your data in the browser, send the encrypted data\nto a server, and use the hash part of the URL (which never\nhits the server) to share the key with someone else.\n\nOn the other side, the recipient obtains the key from the URL,\nthe payload from the server and decrypts the data.\n\nThis library does not handle any of the server upload/download\nside, it's up to you. It only deals with encryption, decryption\nand moving keys in and out of URLs.\n\n## Installation\n\n```shell\n$ yarn add @47ng/simple-e2ee\n# or\n$ npm i @47ng/simple-e2ee\n```\n\n## Usage\n\n```ts\nimport {\n  encrypt,\n  decrypt,\n  applyKeyToURL,\n  getKeyFromURL,\n  generateKey\n} from '@47ng/simple-e2ee'\n\n// Before sending data to the server, encrypt it:\nconst { payload, key } = encrypt(\n  \"whatever you want, as long as it's JSON-serialisable\"\n)\n\n// Upload `payload` to the server\n// Stick the key onto the current URL:\nconst shareURL = applyKeyToURL(key)\n\n// Optionally, apply the key to another URL\n// (example, with an ID returned from the server):\nconst shareURL = applyKeyToURL(key, `https://example.com/share/${id}`)\n\n// On the other side, get the key from the current URL,\n// and the payload from the server:\nconst key = getKeyFromURL()\nconst message = decrypt(payload, key)\n\n// Optionally, obtain the key from any URL:\nconst key = getKeyFromURL(\n  `https://example.com/share/foo#KatLceVEOM2znzX_FGPKu6Zz1adWkhlq9b2R9WRjUsM=`\n)\n\n// Encrypt related pieces of content with the same key:\nconst payload = encrypt('some more data', key)\n\n// Generate a key for later use:\nconst key = generateKey()\n```\n\n## License\n\n[MIT](https://github.com/47ng/simple-e2ee/blob/master/LICENSE) - Made with ❤️ by [François Best](https://francoisbest.com).\n\nUsing this package at work ? [Sponsor me](https://github.com/sponsors/franky47) to help with support and maintenance.\n","readmeFilename":"README.md"}