{"_id":"secure-keys","_rev":"168446","name":"secure-keys","description":"Encrypt/Decrypt the values of a given object","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jcrugzz","email":"jcrugzz@gmail.com"}],"time":{"modified":"2021-06-03T11:49:03.000Z","created":"2016-02-02T06:11:56.660Z","1.0.0":"2016-02-02T06:11:56.660Z"},"users":{"tjfwalker":true},"author":{"name":"Jarrett Cruger","email":"jcrugzz@gmail.com"},"versions":{"1.0.0":{"name":"secure-keys","version":"1.0.0","description":"Encrypt/Decrypt the values of a given object","main":"index.js","scripts":{"test":"mocha test/*-test.js"},"keywords":["secure-keys","conversion","crypto","secure","config"],"author":{"name":"Jarrett Cruger","email":"jcrugzz@gmail.com"},"license":"MIT","devDependencies":{"assume":"^1.3.1","mocha":"^2.4.5"},"gitHead":"92688f0e0b3ed731a0db9130b03a4466110d22c7","_id":"secure-keys@1.0.0","_shasum":"f0c82d98a3b139a8776a8808050b824431087fca","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.3","_npmUser":{"name":"jcrugzz","email":"jcrugzz@gmail.com"},"dist":{"shasum":"f0c82d98a3b139a8776a8808050b824431087fca","size":4441,"noattachment":false,"key":"/secure-keys/-/secure-keys-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/secure-keys/download/secure-keys-1.0.0.tgz"},"maintainers":[{"name":"jcrugzz","email":"jcrugzz@gmail.com"}],"_npmOperationalInternal":{"host":"packages-6-west.internal.npmjs.com","tmp":"tmp/secure-keys-1.0.0.tgz_1454393515938_0.5482111622113734"},"directories":{},"publish_time":1454393516660,"_cnpm_publish_time":1454393516660,"_hasShrinkwrap":false}},"readme":"# secure-keys\n\n[![build\nstatus](https://travis-ci.org/jcrugzz/secure-keys.svg?branch=master)](http://travis-ci.org/jcrugzz/secure-keys)\n\nA simple module that encrypts/decrypts the keys of a given object\n\n## install\n```sh\nnpm i secure-keys --save\n```\n\n## usage\n\n```js\n\nvar SecK = require('secure-keys');\n\nvar sec = new SecK({\n  secret: 'BEGIN RSA', // Text of key used for encrypting/decrypting\n  format: JSON, // optional (defaults to JSON): An object with `stringify` and `parse` methods\n  alg: 'aes-256-ctr' //optional (this is default) Algorithm to use for encrypt/decrypt\n});\n\nvar encryptedObj = sec.encrypt({\n  myConfig: 'values',\n  needTo: 'be safe'\n});\n\nvar decryptedObj = sec.decrypt(encryptedObj);\n```\n\n## LICENSE\nMIT\n\n---------------\n\nThis code was yanked out of work by\n[@indexzero](https://github.com/indexzero) for\n[`nconf`](https://github.com/indexzero/nconf)\n","_attachments":{},"license":"MIT"}