{"_id":"browser-passworder","_rev":"8-139ef05114fe1927f15790abd6d2d0a4","name":"browser-passworder","description":"A simple browserifiable module for password-encrypting JS objects.","dist-tags":{"latest":"2.0.3"},"versions":{"1.0.0":{"name":"browser-passworder","version":"1.0.0","description":"A simple browserifiable module for password-encrypting JS objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"testem ci -P 2","buildTest":"browserify test/index.js -o test/bundle.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/flyswatter/browser-passworder.git"},"keywords":["Browser","password","encryption","browserify"],"author":{"name":"Dan Finlay"},"license":"ISC","bugs":{"url":"https://github.com/flyswatter/browser-encryptor/issues"},"homepage":"https://github.com/flyswatter/browser-encryptor#readme","gitHead":"4b63ebeaa2bfe711d38cba37e5a7ef64f431e2d7","_id":"browser-passworder@1.0.0","_shasum":"c28ecf3e3b44f974ccd057ba633ccf42c8cc1e03","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"c28ecf3e3b44f974ccd057ba633ccf42c8cc1e03","tarball":"https://registry.npmjs.org/browser-passworder/-/browser-passworder-1.0.0.tgz","integrity":"sha512-a+evvBSl6VActee3cv54/Bwu8e379KuOMsI6iqUad/jk0Ve5QQeR4Oisc6rwEq82XgqEC1CPqw3xJj2sxgIPOw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQChElD2vIrommETKt4yyofzRiZjBEm0PRpAVqp66i3X8gIgQz1iKnMyHwE6ras2zRLaVbpZzfRXVP3fh8u96z+V6hE="}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/browser-passworder-1.0.0.tgz_1482206453786_0.8842349601909518"}},"1.0.1":{"name":"browser-passworder","version":"1.0.1","description":"A simple browserifiable module for password-encrypting JS objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"testem ci -P 2","buildTest":"browserify test/index.js -o test/bundle.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/flyswatter/browser-passworder.git"},"keywords":["Browser","password","encryption","browserify"],"author":{"name":"Dan Finlay"},"license":"ISC","bugs":{"url":"https://github.com/flyswatter/browser-encryptor/issues"},"homepage":"https://github.com/flyswatter/browser-encryptor#readme","gitHead":"85c47adbd3bd2ed0552df22b865d19a1e56680e9","_id":"browser-passworder@1.0.1","_shasum":"1e6797fc6bc0ab0f2abfa82245c91606eb5b2c78","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"1e6797fc6bc0ab0f2abfa82245c91606eb5b2c78","tarball":"https://registry.npmjs.org/browser-passworder/-/browser-passworder-1.0.1.tgz","integrity":"sha512-M0CkOXu2jf9TEToUe3T5g5bOlxO7yy/1sXnc9wa/SfiTkfwXuC7rwIPR+cG/ZC423WU/OP97csYwhq7kRLkPrw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDGM9oAFeYQheGjl/TMxW+CA4nXpVJJiiKEU+NiQfDGCAIhAKh6wfIGvtSlX1vHGXO/B1U0PiXGtE4sd1wWKwXTuNRN"}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/browser-passworder-1.0.1.tgz_1482207367204_0.406766458414495"}},"2.0.0":{"name":"browser-passworder","version":"2.0.0","description":"A simple browserifiable module for password-encrypting JS objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"testem ci -P 2","buildTest":"browserify test/index.js -o test/bundle.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/flyswatter/browser-passworder.git"},"keywords":["Browser","password","encryption","browserify"],"author":{"name":"Dan Finlay"},"license":"ISC","bugs":{"url":"https://github.com/flyswatter/browser-encryptor/issues"},"homepage":"https://github.com/flyswatter/browser-encryptor#readme","dependencies":{"unibabel":"^2.1.3"},"gitHead":"d412ba10f28aadb2311461f01f0ff8f0f8d262b3","_id":"browser-passworder@2.0.0","_shasum":"830a530bed49ecb73b842e0fc3553189fc54fef5","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"830a530bed49ecb73b842e0fc3553189fc54fef5","tarball":"https://registry.npmjs.org/browser-passworder/-/browser-passworder-2.0.0.tgz","integrity":"sha512-t3J5JkP5Js7O6vK65tjL6gUxtOzw3mCQcREH06MHErUBtc+g1XmDr8wIHL1gSOFbVClsHkFAjd6IUWyfe5qmHA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGcIiqyXhPpw2B7EAPJZISvEJvitjIbSjiQ8IzF0IDz2AiEA5h6raZen28nywyIl4H+Mbd/QP4kDkV86HtfBRbWg0Js="}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/browser-passworder-2.0.0.tgz_1482255346541_0.9121571856085211"}},"2.0.1":{"name":"browser-passworder","version":"2.0.1","description":"A simple browserifiable module for password-encrypting JS objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"testem ci -P 2","buildTest":"browserify test/index.js -o test/bundle.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/flyswatter/browser-passworder.git"},"keywords":["Browser","password","encryption","browserify"],"author":{"name":"Dan Finlay"},"license":"ISC","bugs":{"url":"https://github.com/flyswatter/browser-encryptor/issues"},"homepage":"https://github.com/flyswatter/browser-encryptor#readme","dependencies":{"browserify-unibabel":"^2.1.3"},"gitHead":"88fa2cafd0d60083f105b9b7e0af093e70dd28de","_id":"browser-passworder@2.0.1","_shasum":"31bd85ccaeb13863c6b11b040522afdfaeb65bbc","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"31bd85ccaeb13863c6b11b040522afdfaeb65bbc","tarball":"https://registry.npmjs.org/browser-passworder/-/browser-passworder-2.0.1.tgz","integrity":"sha512-EkyPfZfrtlaa6fs7beT8TGSv0OPfB9QmVHSH0/Ky9nvsuImPO/kfmbJly7jxuP7ifxG/aZkHnJIspZPQuV5Z5A==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCWLjSgIqe8CXS8NZLw62IUcADO00cUEkTpa05MVdJs+AIgVdW29RGNrqQM/2C0ToTCOREWfVvhV2A9lKZLfKM1ko4="}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/browser-passworder-2.0.1.tgz_1482256766975_0.19413384539075196"}},"2.0.2":{"name":"browser-passworder","version":"2.0.2","description":"A simple browserifiable module for password-encrypting JS objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"testem ci -P 2","buildTest":"browserify test/index.js -o test/bundle.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/flyswatter/browser-passworder.git"},"keywords":["Browser","password","encryption","browserify"],"author":{"name":"Dan Finlay"},"license":"ISC","bugs":{"url":"https://github.com/flyswatter/browser-encryptor/issues"},"homepage":"https://github.com/flyswatter/browser-encryptor#readme","dependencies":{"browserify-unibabel":"^3.0.0"},"gitHead":"48876326c1d658bc8eade0a5f919cba62a220738","_id":"browser-passworder@2.0.2","_shasum":"32aad6744e531239aeb81527f44c566c5229ab51","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"32aad6744e531239aeb81527f44c566c5229ab51","tarball":"https://registry.npmjs.org/browser-passworder/-/browser-passworder-2.0.2.tgz","integrity":"sha512-kbZuNjnrW0rzccdhS7JPJvYztvwTEBD4mxzLOtBCTdBtGvY64qB/kZaU2cMoBsm13684WjTO/1NjAMhCBKSCMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD+doUvrsFKlTruFAKJs+5jERpOLGD3q6ikc0eW7ABRzAIhAPpV+Zj6O9/+av+EL8zEoovnWCWqIp/9k9sQ/NhkmdMA"}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/browser-passworder-2.0.2.tgz_1482257483312_0.7435703445225954"}},"2.0.3":{"name":"browser-passworder","version":"2.0.3","description":"A simple browserifiable module for password-encrypting JS objects.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"testem ci -P 2","buildTest":"browserify test/index.js -o test/bundle.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/flyswatter/browser-passworder.git"},"keywords":["Browser","password","encryption","browserify"],"author":{"name":"Dan Finlay"},"license":"ISC","bugs":{"url":"https://github.com/flyswatter/browser-encryptor/issues"},"homepage":"https://github.com/flyswatter/browser-encryptor#readme","dependencies":{"browserify-unibabel":"^3.0.0"},"gitHead":"5f1c2f80be40197402d45389e893ad4bd9338473","_id":"browser-passworder@2.0.3","_shasum":"6fdd2082e516a176edbcb3dcee0b7f9fce4f7917","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.1","_npmUser":{"name":"danfinlay","email":"dan@danfinlay.com"},"dist":{"shasum":"6fdd2082e516a176edbcb3dcee0b7f9fce4f7917","tarball":"https://registry.npmjs.org/browser-passworder/-/browser-passworder-2.0.3.tgz","integrity":"sha512-8mTcGjsVqYkRW0qLmdussBjf/5joBUpvZfR8jUojITBJVVZIS5BL41Qt/xehS+n2ChA2YJHHLPhlkXziK+gvsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD02xAqOJ190hysfyiw3WXVrfdNyAHH9pHnNXrt9+ZfpAIgCiDrmsukVP+dQtH2l7x39AG5SK4+yYfC8PcwpUrVl94="}]},"maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/browser-passworder-2.0.3.tgz_1482258292642_0.3288066047243774"}}},"readme":"# Browser Passworder [![CircleCI](https://circleci.com/gh/flyswatter/browser-passworder.svg?style=svg)](https://circleci.com/gh/flyswatter/browser-passworder)\n\nA simple module for encrypting & decrypting Javascript objects with a password in the browser.\n\nSerializes the encrypted payload as a string of text for easy storage.\n\nUses browser native crypto to be the lightest possible module you can have, with the most vetted internals you could ask for (the real guts here are implemented by the browser provider).\n\n## Installation\n\nYou need to have node.js installed.\n\n```bash\nnpm install browser-passworder\n```\n\n## Usage\n\n```javascript\nvar passworder = require('browser-passworder')\n\nvar secrets = { coolStuff: 'all', ssn: 'livin large' }\nvar password = 'hunter55'\n\npassworder.encrypt(password, secrets)\n.then(function(blob) {\n  return passworder.decrypt(password, blob)\n})\n.then(function(result) {\n  assert.deepEqual(result, secrets)\n})\n```\n\nThere are also some more advanced internal methods you can choose to use, but that's the basic version of it.\n\nThe most advanced alternate usage would be if you want to cache the password-derived key to speed up performance for many encryptions/decryptions with the same password.\n\n## Details\n\nThe serialized text is stored as a JSON blob that includes two base64-encoded fields, `data` and `iv`, neither of which you need to worry about.\n\nThe data is encrypted using the `AES-GCM` algorithm. It is salted with the result of `crypto.getRandomValues()`, and the encryption vector is generated the same way.\n\n## Running Tests\n\n```bash\nnpm test\n```\n","maintainers":[{"name":"danfinlay","email":"dan@danfinlay.com"}],"time":{"modified":"2022-06-13T05:09:40.381Z","created":"2016-12-20T04:00:55.620Z","1.0.0":"2016-12-20T04:00:55.620Z","1.0.1":"2016-12-20T04:16:09.226Z","2.0.0":"2016-12-20T17:35:48.524Z","2.0.1":"2016-12-20T17:59:29.297Z","2.0.2":"2016-12-20T18:11:25.435Z","2.0.3":"2016-12-20T18:24:54.715Z"},"homepage":"https://github.com/flyswatter/browser-encryptor#readme","keywords":["Browser","password","encryption","browserify"],"repository":{"type":"git","url":"git+ssh://git@github.com/flyswatter/browser-passworder.git"},"author":{"name":"Dan Finlay"},"bugs":{"url":"https://github.com/flyswatter/browser-encryptor/issues"},"license":"ISC","readmeFilename":"README.md"}