{"name":"@libp2p/crypto","version":"0.22.0","keywords":["IPFS","libp2p","crypto","rsa","secp256k1"],"license":"MIT","_id":"@libp2p/crypto@0.22.0","contributors":[{"name":"David Dias","email":"daviddias.p@gmail.com"},{"name":"Friedel Ziegelmayer","email":"dignifiedquire@gmail.com"},{"name":"Jacob Heun","email":"jacobheun@gmail.com"},{"name":"Vasco Santos","email":"vasco.santos@moxy.studio"},{"name":"Maciej Krüger","email":"mkg20001@gmail.com"},{"name":"Alex Potsides","email":"alex@achingbrain.net"},{"name":"dignifiedquire","email":"dignifiedquire@users.noreply.github.com"},{"name":"dryajov","email":"dryajov@gmail.com"},{"name":"Hugo Dias","email":"hugomrdias@gmail.com"},{"name":"Alan Shaw","email":"alan.shaw@protocol.ai"},{"name":"Cayman","email":"caymannava@gmail.com"},{"name":"Yusef Napora","email":"yusef@napora.org"},{"name":"ᴠɪᴄᴛᴏʀ ʙᴊᴇʟᴋʜᴏʟᴍ","email":"victorbjelkholm@gmail.com"},{"name":"Arve Knudsen","email":"arve.knudsen@gmail.com"},{"name":"Alberto Elias","email":"hi@albertoelias.me"},{"name":"Jack Kleeman","email":"jackkleeman@gmail.com"},{"name":"Nadim Kobeissi","email":"nadim@symbolic.software"},{"name":"Richard Littauer","email":"richard.littauer@gmail.com"},{"name":"Richard Schneider","email":"makaretu@gmail.com"},{"name":"dirkmc","email":"dirkmdev@gmail.com"},{"name":"nikuda","email":"nikuda@gmail.com"},{"name":"Jimmy Wärting","email":"jimmy@warting.se"},{"name":"Carson Farmer","email":"carson.farmer@gmail.com"},{"name":"Tom Swindell","email":"t.swindell@rubyx.co.uk"},{"name":"Joao Santos","email":"jrmsantos15@gmail.com"}],"homepage":"https://github.com/libp2p/js-libp2p-crypto","bugs":{"url":"https://github.com/libp2p/js-libp2p-crypto/issues"},"dist":{"shasum":"5a964e93311232bc9bc8b8a188646e5b04d08131","tarball":"http://registry-npm.ywwl.com/@libp2p/crypto/download/@libp2p/crypto-0.22.0.tgz","fileCount":170,"integrity":"sha512-4ut60IX3ET6YUf8Hb+oj/DKGVV1CYR22Le+VglD/8nfdHmbQ9IQJcPZGZXDRSv2Znf++k2YHAAnyQHZaM8Gy6w==","signatures":[{"sig":"MEQCIFlrE8lRkXljkebAkNkFOwyfIDvDpHH3EMrTBebBWHFCAiB+SundYBjpNd4M342KuUvX479rUEJ7nRrC5kwjWKnDoA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":238435,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh1DJnCRA9TVsSAnZWagAAYpwP/A1wyvJ+nTpoOflK85kp\nlPpVhV/EJQZZyjnLcTZKACAlGl4ZkKObfUgmQESKH66fa16Tc1XIdal6wVZV\nTaPC3rq/1GeEmY3Sd/41TWWQ9odtfFsmdGTGRUnlkLgL5OIKmQDr7pyFQmZF\nm0LxN4D+ZUz7mQZrsArqc7qn0gYDbu75aUSqh9AziBCkan5gaZo9IkaTFUTC\nViAfhCAttd1Ewr3mW7iCnrbjmzOQxjC9wtkCCGm2jUlMoqrb4gJR18c0QBaf\nm9ORXPcMPKS/Dv0vm09nBdqWHrINvFLBHGdmSMtMZmjE5D/hCz+yOPWEEUvE\nhAEaFz5vu+as0j/+1VWLENoqxxecU9DFC9V6/oOMSLUR8ApC63Zo6v20Jw4L\nwJdLIGxWZHAsDybPqb33MD2ygTlspXA9F08EVzjr4CL4iDO5O26mT3qL7hap\nW4HZkRQloOeR+WOTvc1u9KcP03yOpeq7IK6qKc6fEwZeAZmjULMaScGWrZmr\nqLORcamt7qomNs8n/8RTOLg3rn4TC/gUbgX7gwVh6eJScakIndCt3K6Lhyfk\nV69J9It/rkAPuBAzckXdBK0I5XywdvrzbN87UUs5WgC6ivRMSjz2hLxrURXd\nc7Qj1Iz8B1AeDzvldg0SirB+J55F8ilrst0sulHC/TzVtYLYOJR9QmTOXaCU\nfQlr\r\n=xaIt\r\n-----END PGP SIGNATURE-----\r\n","size":49079,"noattachment":false,"key":"/@libp2p/crypto/-/@libp2p/crypto-0.22.0.tgz"},"type":"module","types":"./dist/src/index.d.ts","browser":{"./dist/src/keys/rsa.js":"./dist/src/keys/rsa-browser.js","./dist/src/keys/ecdh.js":"./dist/src/keys/ecdh-browser.js","./dist/src/hmac/index.js":"./dist/src/hmac/index-browser.js","./dist/src/aes/ciphers.js":"./dist/src/aes/ciphers-browser.js","./dist/src/ciphers/aes-gcm.js":"./dist/src/ciphers/aes-gcm.browser.js"},"engines":{"node":">=15.0.0"},"exports":{".":{"import":"./dist/src/index.js"},"./aes":{"import":"./dist/src/aes/index.js"},"./hmac":{"import":"./dist/src/hmac/index.js"},"./keys":{"import":"./dist/src/keys/index.js"},"./ciphers":{"import":"./dist/src/ciphers/index.js"}},"gitHead":"8d9c21d28c659aeda0daae3f0c6033c9d3899291","scripts":{"lint":"aegir ts -p check && aegir lint","test":"aegir test -f ./dist/test/**/*.js","build":"tsc","pretest":"npm run build","release":"aegir release --docs","dep-check":"aegir dep-check dist/src/**/*.js dist/test/**/*.js","test:node":"aegir test -t node -f ./dist/test/**/*.js","build:proto":"npm run build:proto:js && npm run build:proto:types","test:browser":"aegir test -t browser -f ./dist/test/**/*.js","release-major":"aegir release --type major --docs","release-minor":"aegir release --target node --type minor --docs","test:electron":"aegir test -t electron-main -f ./dist/test/**/*.js","build:proto:js":"pbjs -t static-module -w es6 --es6 -r libp2p-crypto-keys --force-number --no-verify --no-delimited --no-create --no-beautify --no-defaults --lint eslint-disable -o src/keys/keys.js ./src/keys/keys.proto","build:proto:types":"pbts -o src/keys/keys.d.ts src/keys/keys.js"},"_npmUser":{"name":"achingbrain","email":"alex@achingbrain.net"},"repository":{"url":"git+https://github.com/libp2p/js-libp2p-crypto.git","type":"git"},"_npmVersion":"8.1.0","description":"Crypto primitives for libp2p","directories":{},"_nodeVersion":"16.13.0","dependencies":{"err-code":"^3.0.1","node-forge":"^0.10.0","protobufjs":"^6.11.2","uint8arrays":"^3.0.0","multiformats":"^9.4.5","@noble/ed25519":"^1.3.3","@noble/secp256k1":"^1.3.4","iso-random-stream":"^2.0.0"},"eslintConfig":{"extends":"ipfs","parserOptions":{"sourceType":"module"},"ignorePatterns":["src/*.d.ts"]},"_hasShrinkwrap":false,"devDependencies":{"util":"^0.12.3","aegir":"^36.0.2","sinon":"^12.0.1","benchmark":"^2.1.4","wherearewe":"^1.0.0","@types/mocha":"^9.0.0"},"_npmOperationalInternal":{"tmp":"tmp/crypto_0.22.0_1641296487021_0.891512704648888","host":"s3://npm-registry-packages"},"readme":"# @libp2p/crypto\n\n[![libp2p.io](https://img.shields.io/badge/project-libp2p-yellow.svg?style=flat-square)](http://libp2p.io/)\n[![Discuss](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg?style=flat-square)](https://discuss.libp2p.io)\n[![codecov](https://img.shields.io/codecov/c/github/libp2p/js-libp2p.svg?style=flat-square)](https://codecov.io/gh/libp2p/js-libp2p)\n[![CI](https://img.shields.io/github/actions/workflow/status/libp2p/js-libp2p/main.yml?branch=main\\&style=flat-square)](https://github.com/libp2p/js-libp2p/actions/workflows/main.yml?query=branch%3Amain)\n\n> Crypto primitives for libp2p\n\n# About\n\n<!--\n\n!IMPORTANT!\n\nEverything in this README between \"# About\" and \"# Install\" is automatically\ngenerated and will be overwritten the next time the doc generator is run.\n\nTo make changes to this section, please update the @packageDocumentation section\nof src/index.js or src/index.ts\n\nTo experiment with formatting, please run \"npm run docs\" from the root of this\nrepo and examine the changes made.\n\n-->\n\nThe `libp2p-crypto` library depends on the [Web Crypto API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) in the browser. Web Crypto is available in all modern browsers, however browsers restrict its usage to [Secure Contexts](https://developer.mozilla.org/en-US/docs/Web/Security/Secure_Contexts).\n\n*This means you will not be able to use some `@libp2p/crypto` functions in the browser when the page is served over HTTP.*\n\nTo enable the Web Crypto API and allow `@libp2p/crypto` to work fully, please serve your page over HTTPS.\n\n# Install\n\n```console\n$ npm i @libp2p/crypto\n```\n\n## Browser `<script>` tag\n\nLoading this module through a script tag will make it's exports available as `Libp2pCrypto` in the global namespace.\n\n```html\n<script src=\"https://unpkg.com/@libp2p/crypto/dist/index.min.js\"></script>\n```\n\n# API Docs\n\n- <https://libp2p.github.io/js-libp2p/modules/_libp2p_crypto.html>\n\n# License\n\nLicensed under either of\n\n- Apache 2.0, ([LICENSE-APACHE](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)\n- MIT ([LICENSE-MIT](https://github.com/libp2p/js-libp2p/blob/main/packages/crypto/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)\n\n# Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.\n","publish_time":1641296487229,"maintainers":[{"name":"jacobheun","email":"jacobheun@gmail.com"},{"name":"npm-service-account-libp2p","email":"npm-service-account+libp2p@ipfs.tech"},{"name":"alanshaw","email":"alan138@gmail.com"},{"name":"vascosantos","email":"santos.vasco10@gmail.com"},{"name":"achingbrain","email":"alex@achingbrain.net"},{"name":"daviddias","email":"mail@daviddias.me"}],"_cnpm_publish_time":1641296487229,"dist-tags":{"latest":"5.2.0","next":"5.2.0-228942556"}}