{"_id":"ecies-25519","_rev":"11-9b4e80e022261d6f488360c004102e74","name":"ecies-25519","dist-tags":{"latest":"1.3.1","beta":"2.0.0-beta.6"},"versions":{"1.0.0":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"1.0.0","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"./node_modules/.bin/tsc -p tsconfig.cjs.json","build:umd":"webpack","build":"yarn clean && yarn build:cjs && yarn build:umd","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@stablelib/x25519":"^1.0.0","aes-js":"^3.1.2","enc-utils":"^2.2.3","hash.js":"^1.1.7","randombytes":"^2.1.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/aes-js":"^3.1.1","@types/jest":"^26.0.15","@types/node":"^14.14.7","@types/randombytes":"^2.0.0","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@1.0.0","dist":{"shasum":"4c2ac73490bfab5bffa7616d55a35302ecb8a2d1","integrity":"sha512-o2cXbISyFzRv9/vQT/G5d79e8IgmaRy+4EanU3DuqlzkXfaGSdRIX4ISjBhG08Nv9mEHDPwafv+cTX2dTD5Aag==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-1.0.0.tgz","fileCount":72,"unpackedSize":742418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfsAXrCRA9TVsSAnZWagAAGsQP/27J/Ht1RyqB2sZGAfoH\nKsOcIlUwR57q/TOjM2Fbyq2gVhOr6cNNN3Oao593LAqjAkrQ35DSFPfpbYVU\nw5tad1caVLKw4Uov2Pzb8J4OqMifyuUqv/uc57FWXDfTH8i/30mX4h6gCswG\nR4XqkM8v4sIne1W4f1cHjpVx7ae3ZZvXlZIQdL2/sJmNPUvnPBwVTufGulZG\nFwvH6ALo+v1dYFr8eoG4qRa6jz73PemktkEG+9YBT3qfMZ86LoS4gJRmWZz/\nZR2g1D1DzbpXMaEhcIZM25W1PtqgT4DFZ9TmYABUwzr8xK8VULQF4MeR2Qj6\nyMwgCr/DVxMaoCeYmmkO0obQpm4b5gu5n5nCyZhNPnuZSB5u/kLBwfaiRQ/+\n5pB4lv/JQ8wiQhs+YUg0Pr4NREaQZXgHgah4kNs/v6CyEdcMJajOFWbDJkhr\nJFnf5Ar4HOQwuIby0el2NbA+ay76LKDVB6cazS/9JWRR5e3k4SZPvqCvs4XE\nYHPU0Y1urSzMORePn1h8JgP8/gNhXYA+2wbZjk8BFkuvAdXTbU63tD4oujSK\nE+Y9+PdSGHanzvX6pyCdz3Yu+iRK1/LFLzAgLG2tSIoC5fwnwSYrEsBBvSuH\nVYfNLfi04DGZsSPWysQCJHuEGt+Lwgtea1qv0TlsQlN0oZARjBe1w6CYD1Ga\nq3jD\r\n=zZKv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBysd+0uXxTeo8qCjrDp8lHJAVFOrchW37sOFIyk0R3HAiEAmZlhPSHxkphKr8A6ZRRbMHJ+ApdF1c7hzmjnycuuKgY="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_1.0.0_1605371371048_0.2600944229089346"},"_hasShrinkwrap":false},"1.1.0":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"1.1.0","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"./node_modules/.bin/tsc -p tsconfig.cjs.json","build:umd":"webpack","build":"yarn clean && yarn build:cjs && yarn build:umd","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@stablelib/x25519":"^1.0.0","aes-js":"^3.1.2","enc-utils":"^3.0.0","hash.js":"^1.1.7","randombytes":"^2.1.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/aes-js":"^3.1.1","@types/jest":"^26.0.15","@types/node":"^14.14.7","@types/randombytes":"^2.0.0","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@1.1.0","dist":{"shasum":"d70744fe355712870940c1c9e57e0b7fe1423d94","integrity":"sha512-ySNeTYFiQabi0ynxegqeCaDJXsUxPUxGSnvAYyvBMv2Tv/MqjHY+1BA7/bZrLalfOJrwbhmzhWbm8YpX3aUD/w==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-1.1.0.tgz","fileCount":72,"unpackedSize":699377,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftAqMCRA9TVsSAnZWagAAFygP/3zKW4fVlwzaJHcjZQpA\nSU904QNIFWKUAY16AvDc8KeDn3C+ONu6q/9r6k88Z5wM1jIGACQvZddGJHCP\nIBxWltypoiuB12y/ujMey9891A0oSINFbwaauB15PUFhTEnZRHVTb6Xl12u/\nyQSFp4EUHgIqQ9ba3ie3tdwWStl7T+XaxkVaF3gZ8oDvm6EbAst7SKtY2+cH\nhb3zCAsdH8Q7FX8efvEVRp6ZWwj4q/UoJkVIgK05KAUldLwVFuUQmlKQjDIw\nIYFNHyLbhZOiJj6I0wbbbOfzhiDNplPAVvkF5vNNM3iUchCsfg/PAPbW9X1R\noZQ3MciTIM5FQlHw+0nTlpQJbsw5Ct6e7wnpFISIfv7oAQ5yBVc1x2nJa28X\nKS9jw7EPUljEPjIZr9mLHUudu1fg3M25E89Arr8pXEQN+s+otva+MU2iFZzP\nmhCW3WyCiigspdXWzweceTfT+dg/fKTBi9m6tKLlz9/OmXtm/GxhwR2KdEn9\nxceLdrsvQNsTEBxUWzq9Cd965i7/y40jx90J35ylB/sSQpDRzpz6wrzQzqAn\n3uBI3E54Na8sTB97MydrV1M3dtJfkJkF5os6X9FMsZtGLty9MsWnnhqjdmpj\n47RKeQ/2A1wWxj2YMBtV0qFEF59Z/oKZ8ZAgY5ATwXIvOy9l2oDibZNYrsY+\ndnAm\r\n=AzVF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCt/lYnATIi7NcycUDNkGIg08u8Jx1FpDP0cE8SLFE0XQIgfQ2ACO0q9unxrWOZR0EGSSsOGHumEuvD9OznYiqPuns="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_1.1.0_1605634699504_0.46221937479319686"},"_hasShrinkwrap":false},"1.2.0":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"1.2.0","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"./node_modules/.bin/tsc -p tsconfig.cjs.json","build:umd":"webpack","build":"yarn clean && yarn build:cjs && yarn build:umd","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@stablelib/x25519":"^1.0.0","aes-js":"^3.1.2","enc-utils":"^3.0.0","hash.js":"^1.1.7","randombytes":"^2.1.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/aes-js":"^3.1.1","@types/jest":"^26.0.15","@types/node":"^14.14.7","@types/randombytes":"^2.0.0","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@1.2.0","dist":{"shasum":"7493cb07bce2c213f7996fe6136d42802e4f0e04","integrity":"sha512-E7SGvHbGvI4HXGIcFJwfCnadCQ6LN+nh1mbDxoxPQmPACvw5aXzYI1mamU7XQMhiVCqUjgmZb25odlhwZUfS1g==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-1.2.0.tgz","fileCount":114,"unpackedSize":718008,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftUdWCRA9TVsSAnZWagAAk+IP/25yg/Qtc0IFNOcMDXTp\nAVTpGRJhGHCCaC8f85EHjhyHUH3osG3O/qFFKYPBoO0xiq3olIGylCHarQwV\n2vUy73pjeKqNjnW9+oTNaG+pWNzlJDKC8pzdQnvLNK+qr4kS4AtAxpUu0dE8\neLdWkbywyPvZJ5MBoJlbTWZXtm8qZe4YYooKku1zBiLG0XYI1QjSAw69bEdV\nKwewujEy0iehY6vg8dvIyyf+dnpXIgLE6tsr24foRxx4bF+vrHL3VGXhX5k7\n62zkgWBFR+Gkw4owIZA6yo55GTOMdqtvod9C4h5w70ez7fVX+K9JJFd9HfCQ\n1yFcBx1FFD9pODHJH9xbXIkL0T4FNbuSaqXcVUwHzCoT9hCfksk3BeiCwCTy\n7cre7yQAJcPeyBml/oPI2q+sKi8TewmjOrHAR4vMEZBsaAvX5B/fctoU0GhS\nqrKBMOOcQc0qr9ezouSHVUDeaQ6YQ75fuzHwijYR/uFl+JK1VnxHcw25SNqg\nEiuYf/ayM9v/hGKqYEYphWsbrhsIDPzykxPsPzOz2ofLA+8P1Uw2GXBgNNjA\nkjXDQjSk+zqdT5YDiTbnbGkU2aV28SyeohL/FPWCTMeCYd7giPqG/nyGO0wm\nQOvhqFg8cZ0i7kqBA/EeBS2KwatUERfwoX7M557mmtsOLm1BQ+yYAkvYdt++\nxiMY\r\n=9hrF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBnrK9CaOSP0iIU0BAHsliMjnXOLh4u+DyeLOTL3u6NcAiEAwnZLhz5SErVgFGm3HbjQSC1k4jy8Q6+46qI6DHs9+Is="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_1.2.0_1605715797450_0.7482212752248978"},"_hasShrinkwrap":false},"1.3.0":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"1.3.0","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"./node_modules/.bin/tsc -p tsconfig.cjs.json","build:umd":"webpack","build":"yarn clean && yarn build:cjs && yarn build:umd","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@stablelib/x25519":"^1.0.0","@pedrouid/iso-crypto":"^1.0.0","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@1.3.0","dist":{"shasum":"cfba77bd6a62b73a68ff5964a2efbe6e342f8e76","integrity":"sha512-QJdCW/5a5Icm/xjj0r9TcVR6ukCc25NKp6Sdk/du21QIU0UYzRSWVn3M3TPuf1PBl5uviSVag6/pSNbJbb0wzA==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-1.3.0.tgz","fileCount":31,"unpackedSize":651992,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJftrnxCRA9TVsSAnZWagAA6BcP+gIOPLIXikS69aBMY5XV\nZd9ykp2DrCARt4KT86WMGXZlRp8yQl9EMlAE7pDSe0hz7Jcq1YUwi8KMomPL\nXvPu6I5I0sONiZqZAStyhWfyblAqAYmNM9t3LXZATpIOwXJjR6T+m+/GBMJs\noeT14pYqtGOLXeVo7mAm1LiMmcauzYLqvoZjtnmOLNMlO3vVOp4sGsIodoWs\npzHJLmpaa6ju9il0dNkxmFG7HHk1DXC7T3djh+l9M2os3+3cUGqGvvhCcipu\naZFxJ9f8pbdf3hbHSHvCUSoO9uH0aMLpc85sIIfWofEhmq8lMo+bnGieIB6x\nUxRv3MBnKr5MbXyXpUNig/aJddD8xybam4xvLueoM9TvZx69UXCvY28dE+Ox\nJgpS6oRptUwN1djBh+o8uyX+z5yhaORO63aSSd/O9/OpwYKSvijKHPH9Q5GV\nshYuyO8FPUCiQcat3M+s1IYXl9PTMeIU7YYDjuX3Q9B9X0Fu6k/4V/N3MGM7\nUk3NTAsxemPzMsLC8pkbb3jJ6ajAzjx0IItFJ+B7dEb71DTbwl7l7ug94ODl\ndhrFA5FO11o9CU6XuPK7qTJu8WltliQVYA8RRuiALrv7SMoRRko3neu8RCwW\ncP01Bym69e9ZX3VQqC0B4472R+AaMDSJUAufGphn1SXSPcDf0jCNA7+yt3CW\neJxD\r\n=ehQp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEvsbfAUCCgseZ6PKZ0V8/eN4ygiJJM+OW6H/wiMY1B+AiEAtI972cFmm8uCRvCsj2JoKI2/cdwIiVxxnvEucHunkUU="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_1.3.0_1605810673051_0.5503566289803352"},"_hasShrinkwrap":false},"1.3.1":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"1.3.1","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"./node_modules/.bin/tsc -p tsconfig.cjs.json","build:umd":"webpack","build":"yarn clean && yarn build:cjs && yarn build:umd","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@pedrouid/iso-crypto":"^1.1.0","@stablelib/x25519":"^1.0.0","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@1.3.1","dist":{"shasum":"3c1796a174caf0bdb039fa99469d2d761c059016","integrity":"sha512-Xfxc28rFM52/3lCKjSU/2oTysdXU5PAT2HqcXsa0kTjRhx2V3TdaGS6eTpfTHTIjZR0fIdpFGI0g5txoBTAiZw==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-1.3.1.tgz","fileCount":31,"unpackedSize":653326,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgPnGuCRA9TVsSAnZWagAA6akP/2fyr6iOUHdaPHBBJxFl\nFbAoCvdiGrMzR6S/8r9Cmrbr1EXV85xdbsNrkwncellCc72SYyFIviwRAGAH\nCInVZZlI2lG6yLTibWJCjuKnuoNumpxEA9IAuutum1j7206Bc+2kOqxjijzu\n43i9gZEw9gaMeCGv71+0IpfF5uTI1MVBOT8DGQ2rZUJ+tQL7Qz9R7U49OScj\nTPOS3lp6aVhJybBGJlDJaW6ByRRaD3hJ/FV7r7eY4XTrY2uQ5lIX9OAErFs1\nL4m2yoPXQn+2VaYnbWvJba5endDSNmibm9JUAx69ciA6beoVEBJoO3h29qSY\nFuDIeVTClXkv8MtS2pf8BF2PvwFMX5m7XudILhHtUkNQcviorGZ9oa4/UR4/\nc4dR02GueuJQxiiMzyDYEhrst0j1MU7quB424wZG0JtQ02jI7jkMZpFskygL\nzugnM+g3TEqJ0stLTC3KVZYIzdXsNP6SOpwhClk+7gUsSVWs7Rbtfpu5jvBQ\n+Ae2EgHs6Sm/HFu1eRGn6kVR7ABQknr7IXqttcgr/mWIYSWZouwVjScMv3Qw\numu4CKUMZW7eCOfQxseNs+BwgNyKotpn5Z9ZT7A7MCErn3LfrKUNyW6F/ybp\nZvNm5f6z0hLXdryVo95Ex7lHKcAw9jWAW+KLi5Ld0tXnxPr/EOrJ36ilKf/o\nbL35\r\n=OA/i\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBCUTK0/YFgJ2DlUbo5gM6XzBvynaVIFggcOhpakCUtwIgQAMu1PPp8LtLuzjx+SavQ9hEhYabu6QSff48b3N5o4s="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_1.3.1_1614705069499_0.3239611790022481"},"_hasShrinkwrap":false},"2.0.0-beta.1":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"2.0.0-beta.1","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","exports":{".":{"node":"./dist/cjs/node/index.js","browser":"./dist/esm/browser/index.js","default":"./dist/cjs/fallback/index.js"},"./sync":{"node":"./dist/cjs/node/sync.js","browser":"./dist/esm/browser/sync.js","default":"./dist/cjs/fallback/sync.js"}},"types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"./node_modules/.bin/tsc -p tsconfig.cjs.json","build:umd":"webpack","build:esm":"yarn tsc -p tsconfig.esm.json","build":"yarn clean && yarn build:cjs && yarn build:umd && yarn build:esm","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@pedrouid/iso-crypto":"^2.0.0-beta.1","@stablelib/x25519":"^1.0.0","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"readmeFilename":"README.md","readme":"# ecies-25519 [![npm version](https://badge.fury.io/js/ecies-25519.svg)](https://badge.fury.io/js/ecies-25519)\n\nIsomorphic Cryptography Library for X25519 ECIES\n\n## Description\n\nThis library supports ECIES encryption using Curve25519 Diffie–Hellman key exchange (aka X25519).\n\nAES, HMAC and SHA methods are supported through native NodeJS and Browser APIs when available and fallbacks to vanilla javascript are already provided.\n\n## Usage\n\n### ECIES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst keyPair = ecies25519.generateKeyPair();\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst encrypted = await ecies25519.encrypt(msg, keyPairB.publicKey);\n\nconst decrypted = await ecies25519.decrypt(encrypted, keyPairB.privateKey);\n\n// decrypted === msg\n```\n\n### ECDH\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst keyPairA = ecies25519.generateKeyPair();\nconst keyPairB = ecies25519.generateKeyPair();\n\nconst sharedKey1 = await ecies25519.derive(\n  keyPairA.privateKey,\n  keyPairB.publicKey\n);\n\nconst sharedKey2 = await ecies25519.derive(\n  keyPairB.privateKey,\n  keyPairA.publicKey\n);\n\n// sharedKey1 === sharedKey2\n```\n\n### RandomBytes\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst length = 32;\nconst key = ecies25519.randomBytes(length);\n\n// key.length === length\n```\n\n### AES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst ciphertext = await ecies25519.aesCbcEncrypt(iv, key, msg);\n\nconst decrypted = await ecies25519.aesCbcDecrypt(iv, key, ciphertext);\n\n// decrypted === str\n```\n\n### HMAC\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst macKey = encUtils.concatArrays(iv, key);\nconst dataToMac = encUtils.concatArrays(iv, key, msg);\n\nconst mac = await ecies25519.hmacSha256Sign(macKey, dataToMac);\n\nconst result = await ecies25519.hmacSha256Verify(macKey, dataToMac, mac);\n\n// result will return true if match\n```\n\n### SHA2\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\n// SHA256\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha256(str);\n\n// SHA512\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha512(str);\n```\n\n## React-Native Support\n\nThis library is intended for use in a Browser or NodeJS environment, however it is possible to use in a React-Native environment if NodeJS modules are polyfilled with `react-native-crypto`, read more [here](https://github.com/tradle/react-native-crypto).\n\n## License\n\n[MIT License](LICENSE.md)\n","licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@2.0.0-beta.1","dist":{"shasum":"9dbbea89905b4176d5999d98e41a5261f44435a1","integrity":"sha512-7cyohB615ta/nsNE/7ZS6KXYB26BOkQypCgsetARd488k2TquKSHaTIragxSiPrj9gq8rC+/Nt3kJtR3QOB4lA==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-2.0.0-beta.1.tgz","fileCount":54,"unpackedSize":620997,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgq6N6CRA9TVsSAnZWagAAOKwP+gKeK0Pwxu6R0OSYqcRu\nSJT3XWnks5H+p8nfI6mUK63DwHtfVvrUj0ILpmcZmK/iORIyhrI3Iig0qjnD\nisXdwYAyf4mSM8uL3Frsei64109r0mvfDb5LoKUhrC+GRUpgftAT7mYlOhL6\nG+9YzJmUp1Ao5AFR3GCyLomtlso11ytoDn6RCShTUZPDNRgTS/kSyVw8mbh6\nPxKevNU8b4ySu3s3MIbh2fKV0rWTj8Ml2EJksiAbZzKbU2gbQZPpe45U8ZQO\nLkgQu6LXpCvEgt2oqiV2x71SPawD7crYiqGARiRYZGKVNw+jmwFAAM6745CR\nNaNkQohKIhIzfqn8sqxIkhJt9z8wQhUvjHF46xmDOpl5R1gwZb1yASIStgMO\n8P354mfWRCrLnBjGuEGL9RhCnMYP4meCNX9xxnGSJZNmjtOennCNPaeo/Nqx\n6AjRyoyHZ+Bc2pNlKVwUi9wrrb3Ponts+CQOrZ8Dig6fsvmfGjyGoLZJvmNr\n6oGvX4/U1GqwVhZJHLnSJ96K10SGCyJJIX4bhF+x3Ip4tSrnChXHGjMRb7UU\nE0N+Tw0xWbAj06tGBPGuAYeaRJ8HBUyEqMPHGqDwmZaQuiR2MDNt8ZXHaj/9\nqgFpGt8obrMsOr5JfFMN6D5dVJvEGpMzmR6qQVajdO5t2HaRXlFChP866PNw\nHdZb\r\n=7eUh\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/qN30Zfd0ersX2amVhnnRom4bUMnbVGfMZBuimUzdcAIhAOcH0zKKXBsyiSRZz8N+q0mEHgDrScZfvEzHRSdO1UfS"}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_2.0.0-beta.1_1621861241794_0.043378488495897205"},"_hasShrinkwrap":false},"2.0.0-beta.2":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"2.0.0-beta.2","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","exports":{".":{"node":"./dist/cjs/index.js","browser":"./dist/esm/index.js","default":"./dist/cjs/index.js"},"./sync":{"node":"./dist/cjs/sync.js","browser":"./dist/esm/sync.js","default":"./dist/cjs/sync.js"}},"types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"./node_modules/.bin/tsc -p tsconfig.cjs.json","build:umd":"webpack","build:esm":"yarn tsc -p tsconfig.esm.json","build":"yarn clean && yarn build:cjs && yarn build:umd && yarn build:esm","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@pedrouid/iso-crypto":"^2.0.0-beta.2","@stablelib/x25519":"^1.0.1","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"readmeFilename":"README.md","readme":"# ecies-25519 [![npm version](https://badge.fury.io/js/ecies-25519.svg)](https://badge.fury.io/js/ecies-25519)\n\nIsomorphic Cryptography Library for X25519 ECIES\n\n## Description\n\nThis library supports ECIES encryption using Curve25519 Diffie–Hellman key exchange (aka X25519).\n\nAES, HMAC and SHA methods are supported through native NodeJS and Browser APIs when available and fallbacks to vanilla javascript are already provided.\n\n## Usage\n\n### ECIES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst keyPair = ecies25519.generateKeyPair();\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst encrypted = await ecies25519.encrypt(msg, keyPairB.publicKey);\n\nconst decrypted = await ecies25519.decrypt(encrypted, keyPairB.privateKey);\n\n// decrypted === msg\n```\n\n### ECDH\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst keyPairA = ecies25519.generateKeyPair();\nconst keyPairB = ecies25519.generateKeyPair();\n\nconst sharedKey1 = await ecies25519.derive(\n  keyPairA.privateKey,\n  keyPairB.publicKey\n);\n\nconst sharedKey2 = await ecies25519.derive(\n  keyPairB.privateKey,\n  keyPairA.publicKey\n);\n\n// sharedKey1 === sharedKey2\n```\n\n### RandomBytes\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst length = 32;\nconst key = ecies25519.randomBytes(length);\n\n// key.length === length\n```\n\n### AES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst ciphertext = await ecies25519.aesCbcEncrypt(iv, key, msg);\n\nconst decrypted = await ecies25519.aesCbcDecrypt(iv, key, ciphertext);\n\n// decrypted === str\n```\n\n### HMAC\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst macKey = encUtils.concatArrays(iv, key);\nconst dataToMac = encUtils.concatArrays(iv, key, msg);\n\nconst mac = await ecies25519.hmacSha256Sign(macKey, dataToMac);\n\nconst result = await ecies25519.hmacSha256Verify(macKey, dataToMac, mac);\n\n// result will return true if match\n```\n\n### SHA2\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\n// SHA256\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha256(str);\n\n// SHA512\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha512(str);\n```\n\n## React-Native Support\n\nThis library is intended for use in a Browser or NodeJS environment, however it is possible to use in a React-Native environment if NodeJS modules are polyfilled with `react-native-crypto`, read more [here](https://github.com/tradle/react-native-crypto).\n\n## License\n\n[MIT License](LICENSE.md)\n","licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@2.0.0-beta.2","dist":{"shasum":"a6c22c7c9c0de2f73e410f725fba2a3d9e8b77df","integrity":"sha512-EFwMX7XGFy62hYm+44bjSsK56bUIzVemv5UuT96gHTjXEiSPamCCw55q0bG13sPapK2kNKuZSnmLGaanr//QYQ==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-2.0.0-beta.2.tgz","fileCount":54,"unpackedSize":620572,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrQmUCRA9TVsSAnZWagAAGGwP+wSp75UKTtnWNw4mH9Wn\nYRDZKFPzUmW5G3xJ/avEmF539wBnxYIvsWA6Klj5CDsiK6pj/LKsfi35tbkR\n2oPajV1en46d2/1KwC7Wm4fBjMYuZ4DTytsPDS1l8IOQ1ddY1bsuFs7DwxZc\n7x883aURzW3ckLO6Eq1LoRbLxw3ZOKCkQS4mMGM1LwM0J9BiTZCi3M9mH5+a\nRoerfIEkeCtzCOQ4kPIwi7sBvMTw9VMjwH14APV5XXZ+YV+FebOA6IXaZ3QP\ngslUiEAl3oPdDTcpoS5dk/CthvkSbOcPg8l0W7tcezc4XOiWESexlAzt1k5I\n+ueUZQ3R9AAERd78JGn4v0uyiogu0Y3pz8BOzbaFCE030zN6siLX25IiHNQ6\nvl+6mssEpgEyTrVikpNHUh5WERGTwoj2LwMvdW4WZGhT8XuEKLAn1TlkYPii\nrTsS+WThZ7qCVWReuxZgXYGXYfOygf9TCvEiMLd1yL5588PrHjkiMbE7Cb5b\nCIQ8cTJOQgR8LEQlTSzOjfzBsM4DB21BF462OVt+S80wMnRVZAs6Rin605JN\nCj51+Uxe9IWvV1K/zIB5Nq0kA9m+yHaVu8XdTnr8VdmrdEx3HfBLCXiXtJ+3\nky9gU06l8ROhalBNF/nQbbdrnRPLjv6fLLnGtXkY7B1SOYZT98SVNBcVvm8z\nfUq/\r\n=AtuO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDYseAHgWkJ9AhOLXiPX/GXEE0myNuWLY69flve7MFSKAiEA0WnHHXph3yL4WShmOqNLPdDJOyzi5QLOFeJ0eVpIfFk="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_2.0.0-beta.2_1621952916006_0.7753678407134934"},"_hasShrinkwrap":false},"2.0.0-beta.3":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"2.0.0-beta.3","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","exports":{".":{"node":"./dist/cjs/index.js","browser":"./dist/esm/index.js","default":"./dist/cjs/index.js"},"./sync":{"node":"./dist/cjs/sync.js","browser":"./dist/esm/sync.js","default":"./dist/cjs/sync.js"}},"types":"dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"yarn tsc -p tsconfig.cjs.json","build:umd":"webpack","build:esm":"yarn tsc -p tsconfig.esm.json","build":"yarn clean && yarn build:cjs && yarn build:umd && yarn build:esm","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@pedrouid/iso-crypto":"^2.0.0-beta.3","@stablelib/x25519":"^1.0.1","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"readmeFilename":"README.md","readme":"# ecies-25519 [![npm version](https://badge.fury.io/js/ecies-25519.svg)](https://badge.fury.io/js/ecies-25519)\n\nIsomorphic Cryptography Library for X25519 ECIES\n\n## Description\n\nThis library supports ECIES encryption using Curve25519 Diffie–Hellman key exchange (aka X25519).\n\nAES, HMAC and SHA methods are supported through native NodeJS and Browser APIs when available and fallbacks to vanilla javascript are already provided.\n\n## Usage\n\n### ECIES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst keyPair = ecies25519.generateKeyPair();\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst encrypted = await ecies25519.encrypt(msg, keyPairB.publicKey);\n\nconst decrypted = await ecies25519.decrypt(encrypted, keyPairB.privateKey);\n\n// decrypted === msg\n```\n\n### ECDH\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst keyPairA = ecies25519.generateKeyPair();\nconst keyPairB = ecies25519.generateKeyPair();\n\nconst sharedKey1 = await ecies25519.derive(\n  keyPairA.privateKey,\n  keyPairB.publicKey\n);\n\nconst sharedKey2 = await ecies25519.derive(\n  keyPairB.privateKey,\n  keyPairA.publicKey\n);\n\n// sharedKey1 === sharedKey2\n```\n\n### RandomBytes\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst length = 32;\nconst key = ecies25519.randomBytes(length);\n\n// key.length === length\n```\n\n### AES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst ciphertext = await ecies25519.aesCbcEncrypt(iv, key, msg);\n\nconst decrypted = await ecies25519.aesCbcDecrypt(iv, key, ciphertext);\n\n// decrypted === str\n```\n\n### HMAC\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst macKey = encUtils.concatArrays(iv, key);\nconst dataToMac = encUtils.concatArrays(iv, key, msg);\n\nconst mac = await ecies25519.hmacSha256Sign(macKey, dataToMac);\n\nconst result = await ecies25519.hmacSha256Verify(macKey, dataToMac, mac);\n\n// result will return true if match\n```\n\n### SHA2\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\n// SHA256\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha256(str);\n\n// SHA512\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha512(str);\n```\n\n## React-Native Support\n\nThis library is intended for use in a Browser or NodeJS environment, however it is possible to use in a React-Native environment if NodeJS modules are polyfilled with `react-native-crypto`, read more [here](https://github.com/tradle/react-native-crypto).\n\n## License\n\n[MIT License](LICENSE.md)\n","licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@2.0.0-beta.3","dist":{"shasum":"782ed673bbb0e3da20cad728089779d54136b0dc","integrity":"sha512-1Jkd+oKlZs3wJ/er2LmarQpNYMdUEtvOtTDzYFOSUwa9WmHkG200Diw6iYI74zG2NFyGu+lncthc942ULiaYIA==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-2.0.0-beta.3.tgz","fileCount":54,"unpackedSize":620557,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgrRdeCRA9TVsSAnZWagAAEfoQAI7piM24oEAWBC5eOrap\nWG/OWiUtX0vHqgemMYCiphR8BcQfcynHGN9CfiEXflgc8V5sx1JitVRiMzQe\nmltYIntd5iwNPKMdHNn147Sn71RYrJWP8s6xaHlKd2UrzHIgmcALY+c+qq4g\n+ZDwNB/R9d78v9SUEIeTq40aup7tLFCY5Qv/m/hTzCE16usHDADRI+CSdiWF\nzo1Qolxk35rIEhMszqkYPYKmtFgN/3LuUevay6c1c5jETm9sGdUb8Ux0TYku\ngGSAKbMMuG8FU203qtoK0ZKDE0j/Lw/6U23B4xrS90LnqQDw5ToOBXD9e6Xu\n2H+naHq9RtCijWnCmO/9rUA2QyJtVtL07af36JkcZQtU0e0BCw2dG2SO8y3g\nN0FdfthlSC4DPeJBvncqXc3dcrKYVD18MTksoSw8r+1ONRY8J4rZ+0UlBl+x\n9zHjdC2C+JW6DfwMbfeA4AhkoBHXERN0HTgVeJFJ3RuL3PMI4L3r+CTW1u7n\nwhYa3XC85SZ5P5sKUIF8m8A2/3hMgUiHX+fDC0XhZSqPIJYg5aW5NxaQRaz0\nzWByNja+Qp3/4HNZnquFRE5hlhhptsKZiChL+VerTMpovSwzCKlG+aBODcUv\nIiY8QHvHVsfxgnzQ+p/g/qq1AzyvY2QaFPIDdIPGiHlj50xj1V7592FPhs2I\n4RxU\r\n=vMrE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCbxKe3Fv+xWnm5haUyWP79OGq323eVByl3d0tSTLuc0AIhAN8eHekW/ppCoDaJbSdqXfU7HRR9AnjudtNkTBuIiYSn"}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_2.0.0-beta.3_1621956445779_0.17656030798022893"},"_hasShrinkwrap":false},"2.0.0-beta.4":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"2.0.0-beta.4","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","module":"dist/esm/index.js","browser":"dist/esm/index.js","types":"./dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","exports":{".":{"types":"./dist/cjs/index.d.ts","node":"./dist/cjs/index.js","browser":"./dist/esm/index.js","default":"./dist/cjs/index.js"},"./sync":{"types":"./dist/cjs/sync.d.ts","node":"./dist/cjs/sync.js","browser":"./dist/esm/sync.js","default":"./dist/cjs/sync.js"}},"homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"yarn tsc -p tsconfig.cjs.json","build:umd":"webpack","build:esm":"yarn tsc -p tsconfig.esm.json","build":"yarn clean && yarn build:cjs && yarn build:umd && yarn build:esm","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@pedrouid/iso-crypto":"^2.0.0-beta.5","@stablelib/x25519":"^1.0.1","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"readmeFilename":"README.md","readme":"# ecies-25519 [![npm version](https://badge.fury.io/js/ecies-25519.svg)](https://badge.fury.io/js/ecies-25519)\n\nIsomorphic Cryptography Library for X25519 ECIES\n\n## Description\n\nThis library supports ECIES encryption using Curve25519 Diffie–Hellman key exchange (aka X25519).\n\nAES, HMAC and SHA methods are supported through native NodeJS and Browser APIs when available and fallbacks to vanilla javascript are already provided.\n\n## Usage\n\n### ECIES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst keyPair = ecies25519.generateKeyPair();\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst encrypted = await ecies25519.encrypt(msg, keyPairB.publicKey);\n\nconst decrypted = await ecies25519.decrypt(encrypted, keyPairB.privateKey);\n\n// decrypted === msg\n```\n\n### ECDH\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst keyPairA = ecies25519.generateKeyPair();\nconst keyPairB = ecies25519.generateKeyPair();\n\nconst sharedKey1 = await ecies25519.derive(\n  keyPairA.privateKey,\n  keyPairB.publicKey\n);\n\nconst sharedKey2 = await ecies25519.derive(\n  keyPairB.privateKey,\n  keyPairA.publicKey\n);\n\n// sharedKey1 === sharedKey2\n```\n\n### RandomBytes\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst length = 32;\nconst key = ecies25519.randomBytes(length);\n\n// key.length === length\n```\n\n### AES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst ciphertext = await ecies25519.aesCbcEncrypt(iv, key, msg);\n\nconst decrypted = await ecies25519.aesCbcDecrypt(iv, key, ciphertext);\n\n// decrypted === str\n```\n\n### HMAC\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst macKey = encUtils.concatArrays(iv, key);\nconst dataToMac = encUtils.concatArrays(iv, key, msg);\n\nconst mac = await ecies25519.hmacSha256Sign(macKey, dataToMac);\n\nconst result = await ecies25519.hmacSha256Verify(macKey, dataToMac, mac);\n\n// result will return true if match\n```\n\n### SHA2\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\n// SHA256\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha256(str);\n\n// SHA512\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha512(str);\n```\n\n## React-Native Support\n\nThis library is intended for use in a Browser or NodeJS environment, however it is possible to use in a React-Native environment if NodeJS modules are polyfilled with `react-native-crypto`, read more [here](https://github.com/tradle/react-native-crypto).\n\n## License\n\n[MIT License](LICENSE.md)\n","licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@2.0.0-beta.4","dist":{"shasum":"e54988e425bf901bb0a716df910d12f378d5e6bd","integrity":"sha512-bYNay+Iw2K3Svb2W0i09TJ7s2uFiFucj3EmAlF/VYCGRj+z7uhzqx0PaWPnkoHPUA++jT1nZmCk2VEB/x3g2UQ==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-2.0.0-beta.4.tgz","fileCount":57,"unpackedSize":177698,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJguTGMCRA9TVsSAnZWagAAVg4P/2CdH+lhSK+feqnIWTv5\nLFDMGrnd69A3ibLRIWFrq2u7sLIBiO/lPzS6Kq6eJcbNWh4wc1t+Ut0aTZ6l\nNUcZusliMLbP65dEk0cyFBY8fgW/aJlXW+RlxolIR7x+enpLiyKRHOX/xp/C\nP8kELwGXkwEU67FN+eVaLJpAsXku/hVwk/EbaKa+np66elW9QFZ4vevFqjoo\nJPLLIF9v14WNMJI7C3hyWfD/Aa1RClUZBY4zDvWiINi4EmCzUwq58qh+xl+8\nGH9DzENfiypoLWMaurz7kaeCjfaoPVr0YXSP5FP9LX8+U+CiqiLGlvIC8m6Q\nB+D2/CZEo/SBZ4Eh4KbaylU7XGDVu8rVkUfI62TFllaavKaHauJFz2yRX275\nV4Ry0gTy2eR1FRpcIVkc32x+OKI0HS7QoX7mMnUTbJQ4x67i8N40E4cpUikB\nzQ8sB+RCtdWgauzzyDZh+F8fsMqroOFncK7Poy1bN4XBHlZH4Lv9dwf/5uVZ\nc8U5CEYJ8Qeqw7XUngdF1um/vEBxeeT5TbEC+cVQfqdvm8CRNCNqbclLRcnB\nVsWrxqYpbbSgzBZA3+0fmfCuaUDQ45eN1H3JK2x5UA/LUttGR7hzV4PcWN8e\nKK5kdsd/iTpo3Z1ZMceSEx4G0z8InpLogV3sFDzsRzPwvtTaCPN8FoOr65UB\nQ1Ht\r\n=vuCq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDAZ2wHtxInqI7o0PI3Q6pwvg+zudxxtCS8t30B5Hv13AIgQRU7c94/79rbU3tiNsgBh7Bh2SWIHj8nTP0PC1/RZi0="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_2.0.0-beta.4_1622749580702_0.13051962762358538"},"_hasShrinkwrap":false},"2.0.0-beta.5":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"2.0.0-beta.5","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","react-native":"dist/cjs/index.js","module":"dist/esm/index.js","browser":"dist/esm/index.js","types":"./dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","exports":{".":{"types":"./dist/cjs/index.d.ts","node":"./dist/cjs/index.js","react-native":"./dist/cjs/index.js","browser":"./dist/esm/index.js","default":"./dist/cjs/index.js"},"./sync":{"types":"./dist/cjs/sync.d.ts","node":"./dist/cjs/sync.js","react-native":"./dist/cjs/sync.js","browser":"./dist/esm/sync.js","default":"./dist/cjs/sync.js"}},"homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"yarn tsc -p tsconfig.cjs.json","build:umd":"webpack","build:esm":"yarn tsc -p tsconfig.esm.json","build":"yarn clean && yarn build:cjs && yarn build:umd && yarn build:esm","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@pedrouid/iso-crypto":"^2.0.0-beta.6","@stablelib/x25519":"^1.0.1","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"readmeFilename":"README.md","readme":"# ecies-25519 [![npm version](https://badge.fury.io/js/ecies-25519.svg)](https://badge.fury.io/js/ecies-25519)\n\nIsomorphic Cryptography Library for X25519 ECIES\n\n## Description\n\nThis library supports ECIES encryption using Curve25519 Diffie–Hellman key exchange (aka X25519).\n\nAES, HMAC and SHA methods are supported through native NodeJS and Browser APIs when available and fallbacks to vanilla javascript are already provided.\n\n## Usage\n\n### ECIES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst keyPair = ecies25519.generateKeyPair();\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst encrypted = await ecies25519.encrypt(msg, keyPairB.publicKey);\n\nconst decrypted = await ecies25519.decrypt(encrypted, keyPairB.privateKey);\n\n// decrypted === msg\n```\n\n### ECDH\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst keyPairA = ecies25519.generateKeyPair();\nconst keyPairB = ecies25519.generateKeyPair();\n\nconst sharedKey1 = await ecies25519.derive(\n  keyPairA.privateKey,\n  keyPairB.publicKey\n);\n\nconst sharedKey2 = await ecies25519.derive(\n  keyPairB.privateKey,\n  keyPairA.publicKey\n);\n\n// sharedKey1 === sharedKey2\n```\n\n### RandomBytes\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst length = 32;\nconst key = ecies25519.randomBytes(length);\n\n// key.length === length\n```\n\n### AES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst ciphertext = await ecies25519.aesCbcEncrypt(iv, key, msg);\n\nconst decrypted = await ecies25519.aesCbcDecrypt(iv, key, ciphertext);\n\n// decrypted === str\n```\n\n### HMAC\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst macKey = encUtils.concatArrays(iv, key);\nconst dataToMac = encUtils.concatArrays(iv, key, msg);\n\nconst mac = await ecies25519.hmacSha256Sign(macKey, dataToMac);\n\nconst result = await ecies25519.hmacSha256Verify(macKey, dataToMac, mac);\n\n// result will return true if match\n```\n\n### SHA2\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\n// SHA256\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha256(str);\n\n// SHA512\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha512(str);\n```\n\n## React-Native Support\n\nThis library is intended for use in a Browser or NodeJS environment, however it is possible to use in a React-Native environment if NodeJS modules are polyfilled with `react-native-crypto`, read more [here](https://github.com/tradle/react-native-crypto).\n\n## License\n\n[MIT License](LICENSE.md)\n","licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@2.0.0-beta.5","dist":{"shasum":"3a64afd75149b7ebfafa887090aa0c242a450a7e","integrity":"sha512-afQtHmg9UxB1MMLfvj/CtiOmYA9JJ0SR7fFxgsuHlLXM0+I54714rtbVwhC0j2xtnHPQHZSf5rF4FAGPSNL3GQ==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-2.0.0-beta.5.tgz","fileCount":57,"unpackedSize":177826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgyjqdCRA9TVsSAnZWagAARawP/RKBDTfS4OpbhxUMs9ba\nftle1O8jS3vwwZRUNKhjLFja6y+LQKoOF1cgI/LBkK1lJ1zqNKDr2tBmHPy7\nYcZfSqCw26fSiYF2YsSTSdsugObEtqm9Gl2hkRxwd4gjJCAO5uRbLCB4Jtj1\nqQ0ljmHAoLmjnUBCRk2s/a/Tid8SU44uZ1rdU2osh1Skgz/958EJk2xw9EGt\nl6Ny8wt7ZAkvAi2w4RYHkfYpQoMT+LmcjAhsqPbHbJO/Ki3/I/jcXgi8Qw6X\nPIy+zaHOE/R0cqcCgRju/0tGNdJ9FB3dFYI0fkBU6h+ZMkUaX9GtUfxqjrIp\nrEndG2YJfruMOAEpM88bNNKCCbiiHTA09rss2mCcsfdg31ZHQKAh8odUi0rx\ndjbp1hwxYyyoOn6Gx8Ymnk8JU44/nkmJCQ6xr/8S7f065/ZSO4Wi4zdIqXHf\nlGVvoxAqUDtP4bM87NjWF41OQim5eGQfyFtNj27xNUcuEVlSCP4VyK+KzyqX\nLwOwRy0HjHgn+URkc3xcwtPgofUjGc6PSQRz7ia+A+1OEgPPSQ5mVj5YZBjY\nJHcJC0vznd5XsQ0Nv0CAY8eqL4KoBkPAjsrOfisHFkwHKdlnr92fJe5BTDkT\ngom5/+hBsKDKaJoslbol5xpbAIig1OFx3HFGvYL4r97X15a2D5E2GYKJcPOA\nIPYh\r\n=qgbj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD2zWq8MvkwCjczsroyp51cUJaXyNgEwglB95iefR9NBwIhAMsdG6x7Ujvz96me72UYfct/lZIp7NacTO7A3PR2w4dg"}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_2.0.0-beta.5_1623866012574_0.5648019452174435"},"_hasShrinkwrap":false},"2.0.0-beta.6":{"name":"ecies-25519","description":"Isomorphic Cryptography Library for X25519 ECIES","version":"2.0.0-beta.6","author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"license":"MIT","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"main":"dist/cjs/index.js","react-native":"dist/cjs/index.js","module":"dist/esm/index.js","browser":"dist/esm/index.js","types":"./dist/cjs/index.d.ts","unpkg":"dist/umd/index.min.js","exports":{".":{"types":"./dist/cjs/index.d.ts","node":"./dist/cjs/index.js","react-native":"./dist/cjs/index.js","browser":"./dist/esm/index.js","default":"./dist/cjs/index.js"},"./sync":{"types":"./dist/cjs/sync.d.ts","node":"./dist/cjs/sync.js","react-native":"./dist/cjs/sync.js","browser":"./dist/esm/sync.js","default":"./dist/cjs/sync.js"}},"homepage":"https://github.com/pedrouid/ecies-25519","repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"scripts":{"start":"tsdx watch","clean":"rm -rf dist","build:cjs":"yarn tsc -p tsconfig.cjs.json","build:umd":"webpack","build:esm":"yarn tsc -p tsconfig.esm.json","build":"yarn clean && yarn build:cjs && yarn build:umd && yarn build:esm","test":"tsdx test ./test","lint":"tsdx lint src test","prepare":"yarn lint && yarn build && yarn test","publish:beta":"yarn publish --tag=beta"},"dependencies":{"@pedrouid/iso-crypto":"^2.0.0-beta.7","@stablelib/x25519":"^1.0.1","enc-utils":"^3.0.0"},"devDependencies":{"@peculiar/webcrypto":"^1.1.3","@types/jest":"^26.0.15","@types/node":"^14.14.7","husky":"^4.3.0","tsdx":"^0.14.1","tslib":"^1.10.0","typescript":"^3.7.5","webpack":"^4.41.6","webpack-cli":"^3.3.11"},"husky":{"hooks":{"pre-commit":"yarn lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"readmeFilename":"README.md","readme":"# ecies-25519 [![npm version](https://badge.fury.io/js/ecies-25519.svg)](https://badge.fury.io/js/ecies-25519)\n\nIsomorphic Cryptography Library for X25519 ECIES\n\n## Description\n\nThis library supports ECIES encryption using Curve25519 Diffie–Hellman key exchange (aka X25519).\n\nAES, HMAC and SHA methods are supported through native NodeJS and Browser APIs when available and fallbacks to vanilla javascript are already provided.\n\n## Usage\n\n### ECIES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst keyPair = ecies25519.generateKeyPair();\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst encrypted = await ecies25519.encrypt(msg, keyPairB.publicKey);\n\nconst decrypted = await ecies25519.decrypt(encrypted, keyPairB.privateKey);\n\n// decrypted === msg\n```\n\n### ECDH\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst keyPairA = ecies25519.generateKeyPair();\nconst keyPairB = ecies25519.generateKeyPair();\n\nconst sharedKey1 = await ecies25519.derive(\n  keyPairA.privateKey,\n  keyPairB.publicKey\n);\n\nconst sharedKey2 = await ecies25519.derive(\n  keyPairB.privateKey,\n  keyPairA.publicKey\n);\n\n// sharedKey1 === sharedKey2\n```\n\n### RandomBytes\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\n\nconst length = 32;\nconst key = ecies25519.randomBytes(length);\n\n// key.length === length\n```\n\n### AES\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst str = 'test message to encrypt';\nconst msg = encUtils.utf8ToArray(str);\n\nconst ciphertext = await ecies25519.aesCbcEncrypt(iv, key, msg);\n\nconst decrypted = await ecies25519.aesCbcDecrypt(iv, key, ciphertext);\n\n// decrypted === str\n```\n\n### HMAC\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\nconst key = ecies25519.randomBytes(32);\nconst iv = ecies25519.randomBytes(16);\n\nconst macKey = encUtils.concatArrays(iv, key);\nconst dataToMac = encUtils.concatArrays(iv, key, msg);\n\nconst mac = await ecies25519.hmacSha256Sign(macKey, dataToMac);\n\nconst result = await ecies25519.hmacSha256Verify(macKey, dataToMac, mac);\n\n// result will return true if match\n```\n\n### SHA2\n\n```typescript\nimport * as ecies25519 from 'ecies-25519';\nimport * as encUtils from 'enc-utils';\n\n// SHA256\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha256(str);\n\n// SHA512\nconst str = 'test message to hash';\nconst msg = encUtils.utf8ToArray(str);\nconst hash = await ecies25519.sha512(str);\n```\n\n## React-Native Support\n\nThis library is intended for use in a Browser or NodeJS environment, however it is possible to use in a React-Native environment if NodeJS modules are polyfilled with `react-native-crypto`, read more [here](https://github.com/tradle/react-native-crypto).\n\n## License\n\n[MIT License](LICENSE.md)\n","licenseText":"MIT License\n\nCopyright (c) 2020 Pedro Gomes\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","_id":"ecies-25519@2.0.0-beta.6","dist":{"shasum":"431a9286cf765bf4bc6a854f03cccd9e2f2b867c","integrity":"sha512-QL7SEyprWcvSM28m/6UtGucwI3gSgnDm/Q9E/J4+z+T/PuCNpWR5y0c45Sip6+T3WrusalPvaEGHHe003ECxzw==","tarball":"https://registry.npmjs.org/ecies-25519/-/ecies-25519-2.0.0-beta.6.tgz","fileCount":57,"unpackedSize":177826,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg8DyPCRA9TVsSAnZWagAAaYUP/AtP/lIEF1ArIWJNrj8T\n4D1yIAvnxSdVAvP4Zqs299J+J4N/ExSHyzgCUQ21UdOx6JtaFhYgTQGzsxLp\nwxkdQL0iqgOSFYo8NanYv+Z0TH639gvhlRAa51Ampu1j58ziE4MM9/ZxCIQ3\nSCA5EM3xfvIR/uaDNP1LyfjuXoJKZI6Qesj7jdLdCOdhrqjwTblGQCHbzTtf\nB+zGe59wMq4UsiwO7UTktP5xwrMPAVSZPSPZnimdmOCEvpWGa6K0YVMbTVWV\nJSymufI89c1PvAGQN2SAChPChisvG6e+gDVbDI+Z8af0g23s4qbiRG7vpuYq\nrs4OA2Y6p2pApsWdbluDfQa+ppDOuToUAzi9Vw1ZkQQiztMi8Ndh8qjiEtRs\ngj2EtpHE1704hKoUyLVH0tImH+n/YHLVBSZvQyz+X/QC6K4F0gdqUK+PdLfU\nY9k92dJSqnehc3pJ3Ff4KS/9otsyJUesHGcT5zyA6gMICOy2Bkgsd2MMYxMq\ni//THlkqeewaGMMzbZaGYCevIqxl2e7+bFuAPyV/jD8zRm8UUhuTvXha/4RD\nZZA891Wirx5DxSwtkuZkA255hNHsjjL7uNluDEUD3FsSwrsAAMoQkC03gpEK\npm1DG2tyEmfBAtYoPeKSf7nABHpgFA5HcO0yXHnjRIMGCt3T4Tbw7Q4z9A1g\nlF/z\r\n=lzm5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAdbn3mRJzlmUxvKmd7AIFw41IFJBAgaWS5w3NJF3J7hAiBA7Exax8e4h+gKqERIShnL307ij+pcDmXVYxEpf+/rOQ=="}]},"_npmUser":{"name":"pedrouid","email":"pedrogomes94@gmail.com"},"directories":{},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ecies-25519_2.0.0-beta.6_1626356879128_0.14195600809060216"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-14T16:29:31.048Z","1.0.0":"2020-11-14T16:29:31.196Z","modified":"2022-04-30T20:26:35.461Z","1.1.0":"2020-11-17T17:38:19.888Z","1.2.0":"2020-11-18T16:09:57.664Z","1.3.0":"2020-11-19T18:31:13.176Z","1.3.1":"2021-03-02T17:11:09.688Z","2.0.0-beta.1":"2021-05-24T13:00:41.995Z","2.0.0-beta.2":"2021-05-25T14:28:36.375Z","2.0.0-beta.3":"2021-05-25T15:27:26.054Z","2.0.0-beta.4":"2021-06-03T19:46:20.874Z","2.0.0-beta.5":"2021-06-16T17:53:32.703Z","2.0.0-beta.6":"2021-07-15T13:47:59.300Z"},"maintainers":[{"name":"pedrouid","email":"pedrogomes94@gmail.com"}],"description":"Isomorphic Cryptography Library for X25519 ECIES","homepage":"https://github.com/pedrouid/ecies-25519","keywords":["ecc","eddsa","ecdh","ecies","crypto","cryptography","curve25519","ed25519","x25519","elliptic","curve"],"repository":{"type":"git","url":"git+https://github.com/pedrouid/ecies-25519.git"},"author":{"name":"Pedro Gomes","email":"github.com/pedrouid"},"bugs":{"url":"https://github.com/pedrouid/ecies-25519/issues"},"license":"MIT","readme":"","readmeFilename":""}