{"os":["win32"],"bugs":{"url":"https://github.com/daguej/node-dpapi/issues"},"dist":{"shasum":"958b7ec36c75f41f475dc9ef7d840cdb9e778067","tarball":"https://registry.npmjs.org/win-dpapi/-/win-dpapi-0.1.1.tgz","fileCount":8,"integrity":"sha512-pzHPpwNSFZ4OlvHmWq60AQY+3Vbf0MVaSN1pSSgzrurqE9H/Ih66Q2t6hxqJRMl5DSxL1X5RhQxW59mv+ofWgA==","signatures":[{"sig":"MEUCIC/xf7QdvGz5KiFQM2wqS19KFMmT6jijsSd74CWxSDYYAiEAz9XHfx0cXVHQ12d9Zte8VypjLfLScZze1xZm0kBbjzQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7689,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe9TfhCRA9TVsSAnZWagAAl00QAJDSFydAuJVdPq+kHaOC\nLMwqs7KOoDs9A/vCVGj5yKiWVdXmuXShorHrgEGGAtgoES02tcjQL09687Pc\nMqQO5SmvvNexIeQZfknrY3XeE4ejLn6ELOyTLckm64nSndjYI3XiJLDuzvI2\nQ/sgVkVPBrfBfdVd0MVimWgguGzzBE2KZmqDeQCFXSqfxDDr+p1NZcDdSc/B\nllxi7FVxMGrwNJt57Q9tRipyUnzku4wY30FogFXdGUOfWj4vnusSbMOyazr9\nLJJOrwVN9M1/lOBlWdXFE8cT7O0I20uR7H8l6QvmwQMtfdXh4NVV7HjZT83U\n7xqsLBlNXND+fGsIfpnRp+BvWDeZgQJ54BuoVkKKKNMnawKtpI0ASEaqobI3\nK5630LSzkHX9+FwIgd+HaV6nZBwvs6j/hrmBDkSFRCXghMp8FTY3Wl3dIHJ9\nl07HeHQ7BmnIEPgVISQQmNxMMCVyAQokgREd+KhmoXhKMaYafUOrI1OdAhCT\n4rkcSt5vN/uk94SNp99RrduENzMV8TP4kokcgKXenCyg4IrizkeICrtifb7K\n0esD8w/9BwT9GPbYpOn5YpEpLx3fjDYrZquYeW2Y1xoOSnmUxvWIJEuv/fYo\n9ORVydXWTjCm0YjKniCuc+KDou9SWt5afdOI5WbWM+P3J/amZzlAMTfiUvi8\nA5IQ\r\n=lqKL\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"win-dpapi","author":{"name":"Brad Hughes"},"readme":"# node-dpapi\nNode native module to encrypt/decrypt data. On Windows, it uses DPAPI\n\n## API:\n```typescript\nfunction protectData(\n    userData: Uint8Array,\n    optionalEntropy: Uint8Array,\n    scope: \"CurrentUser\" | \"LocalMachine\"\n): Uint8Array;\n\nfunction unprotectData(\n    encryptedData: Uint8Array,\n    optionalEntropy: Uint8Array,\n    scope: \"CurrentUser\" | \"LocalMachine\"\n): Uint8Array;\n```\n\n## Example:\n```javascript\nimport * as dpapi from \"node-dpapi\";\n\nconst buffer = Buffer.from(\"Hello world\", \"utf-8\");\n\nconst encrypted = dpapi.protectData(buffer, null, \"CurrentUser\");\nconst decrypted = dpapi.unprotectData(encrypted, null, \"CurrentUser\");\n```\n\n## FAQ:\nQ: Does this work on all platforms?\n\nA: Currently it just works on Windows\n\n## Publish note\nThis package originates from [bradhugh/node-dpapi](https://github.com/bradhugh/node-dpapi), but he [did not publish it to npm](https://github.com/bradhugh/node-dpapi/issues/1).  [I](https://github.com/daguej) have taken the liberty of publishing this package so it may be used as a dependency.","gitHead":"0f1f46c3920cd44c2549f56898273e63ce96147e","gypfile":true,"license":"MIT","scripts":{"test":"node test.js","install":"node-gyp rebuild"},"_npmUser":{"name":"daguej","email":"daguej@email.uc.edu"},"homepage":"https://github.com/daguej/node-dpapi#readme","keywords":["dpapi","encrypt"],"repository":{"url":"git+https://github.com/daguej/node-dpapi.git","type":"git"},"_npmVersion":"6.14.4","description":"Node native module to encrypt/decrypt data. On Windows, it uses DPAPI","directories":{},"maintainers":[{"name":"daguej","email":"daguej@email.uc.edu"}],"_nodeVersion":"12.16.2","dependencies":{"nan":"^2.14.1","bindings":"^1.5.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/win-dpapi_0.1.1_1593128929142_0.2987939738198835","host":"s3://npm-registry-packages"},"_id":"win-dpapi@0.1.1","version":"0.1.1"}