UNPKG

@digitalcredentials/minimal-cipher

Version:
91 lines (90 loc) 2.71 kB
{ "name": "@digitalcredentials/minimal-cipher", "version": "5.1.2", "description": "Minimal encryption/decryption JWE library.", "license": "BSD-3-Clause", "type": "module", "exports": "./lib/index.js", "browser": { "./lib/algorithms/c20p.js": "./lib/algorithms/c20p-browser.js", "./lib/algorithms/x25519-helper.js": "./lib/algorithms/x25519-helper-browser.js", "./lib/crypto.js": "./lib/crypto-browser.js" }, "files": [ "lib/**/*.js" ], "scripts": { "test": "npm run test-node", "test-node": "cross-env NODE_ENV=test mocha -t 30000 -R ${REPORTER:-spec} --require test/node.js test/unit/index.js", "test-karma": "cd test && karma start karma.conf.cjs", "coverage": "cross-env NODE_ENV=test c8 npm run test-node", "coverage-ci": "cross-env NODE_ENV=test c8 --reporter=lcovonly --reporter=text-summary --reporter=text npm run test-node", "coverage-report": "c8 report", "lint": "eslint ." }, "dependencies": { "@noble/ed25519": "^1.6.1", "@stablelib/chacha": "^1.0.1", "@stablelib/chacha20poly1305": "^1.0.1", "@digitalcredentials/base58-universal": "^1.0.1", "@digitalcredentials/base64url-universal": "^2.0.2" }, "devDependencies": { "@digitalbazaar/did-io": "^2.0.0", "@digitalbazaar/did-method-key": "^3.0.0", "@digitalbazaar/x25519-key-agreement-key-2020": "^3.0.0", "c8": "^7.11.3", "chai": "^4.3.6", "cross-env": "^7.0.3", "eslint": "^8.17.0", "eslint-config-digitalbazaar": "^3.0.0", "eslint-plugin-jsdoc": "^39.3.2", "eslint-plugin-unicorn": "^42.0.0", "isomorphic-webcrypto": "^2.3.8", "karma": "^6.3.20", "karma-chai": "^0.1.0", "karma-chrome-launcher": "^3.1.1", "karma-mocha": "^2.0.1", "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.3.8", "karma-webpack": "^5.0.0", "mocha": "^10.0.0", "mocha-lcov-reporter": "^1.3.0", "tweetnacl": "^1.0.3", "web-streams-polyfill": "^3.2.1", "webpack": "^5.73.0" }, "repository": { "type": "git", "url": "https://github.com/digitalcredentials/minimal-cipher" }, "keywords": [ "cipher", "encryption", "decryption", "jwe", "cwe", "ChaCha20Poly1305", "XChaCha20Poly1305", "AES-GCM" ], "author": { "name": "Digital Bazaar, Inc.", "email": "support@digitalbazaar.com", "url": "https://digitalbazaar.com/" }, "bugs": { "url": "https://github.com/digitalcredentials/minimal-cipher/issues" }, "homepage": "https://github.com/digitalcredentials/minimal-cipher", "c8": { "reporter": [ "lcov", "text-summary", "test" ] }, "engines": { "node": ">=14" } }