{"_id":"@danilo_pereira/json-crypto","_rev":"12-56c9c505efea28c13645b1ab0294ebf3","name":"@danilo_pereira/json-crypto","dist-tags":{"latest":"1.0.4"},"versions":{"0.0.1":{"name":"@danilo_pereira/json-crypto","version":"0.0.1","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"Make API rest easy using a json file as pipeline","gitHead":"355c976ebd6673e12de20baa4305070678de2d35","_id":"@danilo_pereira/json-crypto@0.0.1","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-HQqAxuq/nl9efcG5uf4w5tqpiWVvYN+1ORtrlJvtWp1An/0jg1YlA5SZ8AI1xOBi+BNqXa92xTaB5Yx1OGzckw==","shasum":"94a415b33e309d03a78179eedf25dd5207bcbab4","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-0.0.1.tgz","fileCount":5,"unpackedSize":49424,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIH8FcGpD3ivwyfN946/6ZOJENg+1YfuZzoHlo6M6io8GAiEAyEIoQuu/EHGmQzWJ9FpXneg6nM7w1g/h1fwm3w6bngc="}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_0.0.1_1635623943707_0.2609133523348657"},"_hasShrinkwrap":false},"0.0.2":{"name":"@danilo_pereira/json-crypto","version":"0.0.2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"355c976ebd6673e12de20baa4305070678de2d35","_id":"@danilo_pereira/json-crypto@0.0.2","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-b8ZzyJCUW6f0HngnMhEYDivRDDjp62D1DBmuR/XwTJig1lF33WT1DbdUj+9DC8xNBO2EIwbGAv5fy2Uk3Lr8Fw==","shasum":"f42605df898e834417ab48d7adaa020d82560be8","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-0.0.2.tgz","fileCount":5,"unpackedSize":49471,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCsBAE2gZclb5GTRHcWhAiWwNVlkgXi2poh5Vd5RXHSvgIgVu2N2NH149gv3gZeB9kFD+ieoPLBMVg+1TWbCzJeNEA="}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_0.0.2_1635626050223_0.01411510429112206"},"_hasShrinkwrap":false},"0.0.3":{"name":"@danilo_pereira/json-crypto","version":"0.0.3","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"355c976ebd6673e12de20baa4305070678de2d35","_id":"@danilo_pereira/json-crypto@0.0.3","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-NlCsn13rHMUzvMmWoW8YyrpRQv7TnW78/Rc6f7LvACYR5DKoHw7dphgWvIl2lpP2+hKJMMsj44KA72pfY4oBbQ==","shasum":"0af19269b53252a6ab1abec21a786e7951940bd2","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-0.0.3.tgz","fileCount":5,"unpackedSize":49451,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHqx7lEzPc3YdDT/lzQX61CMNtDrqS5Ox0BQFyhRoTVuAiEAgpg/cJk2RyBp79OI6cG09XSovQ9jKWl2BFKqK+GcTgE="}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_0.0.3_1635626383578_0.6883026666681615"},"_hasShrinkwrap":false},"0.0.4":{"name":"@danilo_pereira/json-crypto","version":"0.0.4","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"355c976ebd6673e12de20baa4305070678de2d35","_id":"@danilo_pereira/json-crypto@0.0.4","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-7knGhFH8/5cLZlnoGwa4eqNFiapTffpvC9yyJoXkOv6i644Z0v6qR4tIbeia+krLtnfQao+4IlYmSfP09O9kuw==","shasum":"b9cb882ff8400d81656b675730f363eaeecd3b89","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-0.0.4.tgz","fileCount":5,"unpackedSize":49436,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCzUvBFgnhGrOaWJ1RnbfcNUxb0ujmAPtjAP/her/exAAIhAKQp1Dtmk4xjZCRKyfB9y5jICmyPCP0qz5Opn/QyNEUC"}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_0.0.4_1635626756236_0.9448658482542218"},"_hasShrinkwrap":false},"0.0.5":{"name":"@danilo_pereira/json-crypto","version":"0.0.5","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"355c976ebd6673e12de20baa4305070678de2d35","_id":"@danilo_pereira/json-crypto@0.0.5","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-BURMZ3aF+iM3ZHyvksIbFNGFOODRTiwiASSjabb2uA32AuqICR/Qb1Tiy6kkfdCiuMWR4nPkUHLMl4TXf2gN/g==","shasum":"b91caeb139737ec944ef160ca09d04ea64269122","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-0.0.5.tgz","fileCount":5,"unpackedSize":49385,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTOt/uqgNsb40Er/RAwc3XIjfY2IL8HDS2lRQF9bx6HwIhAPRs6eXgqitX/pBRk/0se62DD6ZC0PMB7qp0ysyzMEMb"}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_0.0.5_1635627053638_0.07770670023858339"},"_hasShrinkwrap":false},"0.0.6":{"name":"@danilo_pereira/json-crypto","version":"0.0.6","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"355c976ebd6673e12de20baa4305070678de2d35","_id":"@danilo_pereira/json-crypto@0.0.6","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-O+714u06jNACV/c/MvJJ+Nq7sZVX6bm3bEHKuXOmV0Yd1SI/a6DLUQ4GnrW1SN2PhFQLrhNaGpl8fxyoQ67EUA==","shasum":"36e65bcf7840f1077e0740816d8eeeae2078c3e7","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-0.0.6.tgz","fileCount":5,"unpackedSize":49529,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDzCAnueC1PGjqc1aLrxfF9tNNM1WTUsDDITclR7J6FKQIgW93NiZncMs+QZMmM20nNKCCGZURvV8rwXomPW/uwCb8="}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_0.0.6_1635627387137_0.7735564071557752"},"_hasShrinkwrap":false},"1.0.0":{"name":"@danilo_pereira/json-crypto","version":"1.0.0","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"9fbbf8362dc642b0170259839f26c1fc456748df","_id":"@danilo_pereira/json-crypto@1.0.0","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-o6YhOLNB5eKu3wBWIu/PDVD4+Hd05ugn0Va1jaxv8IRuxEu7CuEpJmTJk5cgvsn4cYe0E/b0N5TJkC8OGTHigA==","shasum":"cbbebb03196f384b7f5cb22dc42b1f43cb69da20","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-1.0.0.tgz","fileCount":4,"unpackedSize":49585,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG+79/neekdQSc41K2vtDFjVp4V3N9ghvnX5rFGWpP9fAiEA4lc2m/Tiy6lfOVBLEfSs4w6DpIBGtaRqrDzes/SOWgQ="}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_1.0.0_1635628450454_0.12459276511867046"},"_hasShrinkwrap":false},"1.0.1":{"name":"@danilo_pereira/json-crypto","version":"1.0.1","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"52d431ba4535fac7ebc2c0a471e883f82d6ba055","_id":"@danilo_pereira/json-crypto@1.0.1","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-1zjHVTEjdg+yY0VcDSvFVoFODwXeady3Rj37ZGtmrOfGuMR47TOPGZd4TIhN3Rtf4H1Ox9r4BTubWpv16vVaEg==","shasum":"74a7e8ba92117341b08059dffa329d1f9ce3d1d7","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-1.0.1.tgz","fileCount":4,"unpackedSize":49604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwGOVLryd40M52YO6RU9Lu5onmPCmKKVj5tRo0J00PvgIhAKqargM0Ttu0y4u97OKV2RvmJ/0k6nux3oZWi2ARC6by"}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_1.0.1_1635628902256_0.708342713726414"},"_hasShrinkwrap":false},"1.0.2":{"name":"@danilo_pereira/json-crypto","version":"1.0.2","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"f42390654d60bcd027a7b849e52ad321c73744a5","_id":"@danilo_pereira/json-crypto@1.0.2","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-Adquf49J/1jDJY9A6jPHovwa6Cn7t+Bc04SjWT05a5YiUV2MpYGr+QCsjC/lzMp4hVH/jEPe4GCnD8klntlimQ==","shasum":"c9006b1efb3eef603f1028396c3967df102ba037","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-1.0.2.tgz","fileCount":4,"unpackedSize":49733,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJtCxPFeStAVNi3J47USB+gGNf8833+pqTwXc08aajxwIhANwW8yW080A5gE8rRUMfmLY9eWXDHK9qjRJp0BwIMWfW"}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_1.0.2_1636462574819_0.9468764250887798"},"_hasShrinkwrap":false},"1.0.3":{"name":"@danilo_pereira/json-crypto","version":"1.0.3","main":"index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"bson":"^4.5.4","crypto":"^1.0.1"},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"db78df303a5ae31926fc022963a6152736b26387","_id":"@danilo_pereira/json-crypto@1.0.3","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-SXEe4Jqk66ksWGGAuSVpzX7Vy2ku+60UI5j2nGOd8LF/K0O5pX7n+ObxS9S7DVtYb1Ic/w1SfBVAGnYB12jrMQ==","shasum":"8f4b2e55d16b9b846d52dd4452147fa4736164b9","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-1.0.3.tgz","fileCount":4,"unpackedSize":49932,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUmkP6QO/Q3e69fa6MiNhDndigskwARpbdyUMLwvqAzAiEA9zCqXv3PaVO0fBC0IjzrtPg6AeuHdAH9ToJMPTQNxk0="}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_1.0.3_1636470137455_0.8933484846679944"},"_hasShrinkwrap":false},"1.0.4":{"name":"@danilo_pereira/json-crypto","version":"1.0.4","main":"./lib/index.js","repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"keywords":[],"author":{"name":"danilo_pereira"},"license":"MIT","bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"homepage":"https://github.com/danilojpferreira/json-crypto#readme","dependencies":{"browser-or-node":"^1.3.0","bson":"^4.5.4","crypto":"^1.0.1","crypto-js":"^4.1.1"},"browser":{"crypto":false,"bson":false},"node":{"crypto-js":false},"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","gitHead":"6e2ed08644b35f1b83fac1e99a1984f3a338484d","_id":"@danilo_pereira/json-crypto@1.0.4","_nodeVersion":"16.11.1","_npmVersion":"8.0.0","dist":{"integrity":"sha512-Ll9C/Gbxgbs5tAW3ZsFMp/VXSvPlMPF5tyFdzuz7vM59OxEtLcnnhC1bZd+nnnryeQoOFmWVGzbGns7Rf0UU2g==","shasum":"dccbc5593c609aff02062a9f2361db9a1118b810","tarball":"https://registry.npmjs.org/@danilo_pereira/json-crypto/-/json-crypto-1.0.4.tgz","fileCount":4,"unpackedSize":31070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhyInmCRA9TVsSAnZWagAAsxsP/RACP1lbwQ/ABIxcfU78\n5w7HpUiAY/evIsEbZAu3LYtsbu/Q81FDmr6SNL/XE5wtHSBLcT/xa6hzOcLz\nkz9AVk0Hikk7riRUzdsdGenrWuHECf37DUiqshRDFNAlI6ufNJSu9LXTzdhJ\nR6YaQxlWPSNBUCTYPY25W0d6Evd/q2XmAmxbk8in9r09UGaAie/+PYHILCSr\nMWLN74eldN0QxBPGkQ9nlbqTv6laYWRDZoe/NQSYIUNlo3y0I9Xsx9Q4Mpq2\nMM0Et1gvdTBy4gtO/PSX1tj9NkFMHUmjaEJ52pEAE0wjMjDNvRfZWPnv+K8T\n7uTh4+n/grQI79wb7HAu+4Y5MWGxAZYLyNYiKkAlkDA913skui2KAo9PDreU\nw1Swi/jOOiHNWPwFL2cCZhltx+i5hs1PNldWB59CiRG+FDqdHtQBeiYLZgyg\nxKt1rGNH3Q3tYu0lDzvC+A5hG9GwZvx80iaahLtwKDzjjIXh8fdJ9x7Ns8gD\nJ8kkyK+k+2r0y34wU4p+VTELuJQDG1QLebXK3Yhy0K1PWuUJmWA2R9l00JL/\nH8aUZlcyybHNXTNlXZlG+oPj39WxNo66pvpO1X1G9zIEa9x0I+ufEtFDWQYg\nF0kVoD2QBYJb3ME5sc91Orn1yqD9RL+oV8YRuoAAU7h8egk3Q3RaEDP/4MeG\nwyRn\r\n=gETk\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDwB9/BRRhgIL936HshQ090svyqc3TjiROVruDTZXgoZAiBm2rBv0kFUkqH5joOA9+c2jER+Sjy5bb8VtM1Sj/0RPg=="}]},"_npmUser":{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"},"directories":{},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/json-crypto_1.0.4_1636756909005_0.8345422066286887"},"_hasShrinkwrap":false}},"time":{"created":"2021-10-30T19:59:03.640Z","0.0.1":"2021-10-30T19:59:03.872Z","modified":"2022-04-05T02:41:43.469Z","0.0.2":"2021-10-30T20:34:10.411Z","0.0.3":"2021-10-30T20:39:43.716Z","0.0.4":"2021-10-30T20:45:56.388Z","0.0.5":"2021-10-30T20:50:53.757Z","0.0.6":"2021-10-30T20:56:27.281Z","1.0.0":"2021-10-30T21:14:10.603Z","1.0.1":"2021-10-30T21:21:42.411Z","1.0.2":"2021-11-09T12:56:14.962Z","1.0.3":"2021-11-09T15:02:17.608Z","1.0.4":"2021-11-12T22:41:49.221Z"},"maintainers":[{"name":"danilo_pereira","email":"danilojpferreira@gmail.com"}],"description":"A simple way to encrypt and decrypt JSON, creating secure data transfer","homepage":"https://github.com/danilojpferreira/json-crypto#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/danilojpferreira/json-crypto.git"},"author":{"name":"danilo_pereira"},"bugs":{"url":"https://github.com/danilojpferreira/json-crypto/issues"},"license":"MIT","readme":"<h1 align=\"center\">\r\n\t🔣 JSON-Crypto 🔢\r\n</h1>\r\n\r\n<p align=\"center\">\r\n  A simple way to encrypt and decrypt JSON, creating secure data transfer\r\n</p>\r\n\r\n<p align=\"center\">\r\n\t<a href=\"#about\">About</a> •\r\n\t<a href=\"#installation\">Installation</a> •\r\n\t<a href=\"#usage\">Usage</a> •\r\n\t<a href=\"#authors\">Authors</a> •\r\n\t<a href=\"#license\">License</a>\r\n</p>\r\n\r\n# About\r\n\r\nEncrypt and decrypt JSON or Simple JavaScript objects. Designed to be used as middleware between the backend and the frontend to prevent web users from getting a human readable JSON, directly in the browser. Useful for frontend applications with logic and/or data processing.\r\n\r\n# Restrictions\r\n\r\nFor now, JSON-Crypto can encrypt and decrypt any JSON. But for JavaScript Objects, the available key values must be of type: `Object`, `Array`, `String`, `Number`, `Boolean`, `ObjectId` or `null`. We're calling this a `Simple JavaScript Object`. In this case you cannot have a `new Date()` as a value, for example.\r\n\r\n# Installation\r\n\r\nUse your favorite JavaScript package manager!\r\n\r\n```bash\r\n$ npm install @danilo_pereira/json-crypto\r\n\r\n$ yarn add @danilo_pereira/json-crypto\r\n```\r\n\r\n## Dependencies\r\n\r\nPerhaps, the dependecies, like `browser-or-node`, `crypto`, `crypto-js` and `bson` dependency must be installed manually for the project to work.\r\n\r\n```bash\r\n$ npm install <DEPENDENCY>\r\n```\r\nor\r\n```bash\r\n$ yarn add <DEPENDENCY>\r\n```\r\n\r\n# Usage\r\n\r\nOnce installed, you can import `JSON-Crypto` into your JavaScript project, insert at the top of your file the following line:\r\n\r\n```javascript\r\nimport jsonCrypto from '@danilo_pereira/json-crypto';\r\n```\r\n\r\nor\r\n\r\n```javascript\r\nvar jsonCrypto = require('@danilo_pereira/json-crypto');\r\n```\r\n\r\nYou also can import the methods one by one, using:\r\n\r\n```javascript\r\nimport { encrypt, decrypt, encryptKey, decryptKey } from \"@danilo_pereira/json-crypto\";\r\n```\r\n\r\nIn the latter case, you should not call `json-crypto` methods like `jsonCrypto.encrypt(...)` but use the method directly like `encrypt(...)`\r\n\r\n## Encrypt\r\n\r\nTo encrypt a JSON or Simple JavaScript Object you should call `jsonCrypto.encrypt(json, encriptedKeys, secret, secret_2)`.\r\n\r\n### Arguments:\r\n\r\n1. json: <font size=\"1\">_REQUIRED_</font> A input JSON or Object that should be encrypted. Should be of type `JSON` or `Object`.\r\n2. encriptedKeys: <font size=\"1\">_OPTIONAL_</font> Define if Object keys will be also encrypted. Should be of type `Boolean`. The default value is `false`.\r\n3. secret: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 32 chars), used as hash to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n4. secret_2: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 16 chars), also used as hash to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n\r\n### Output\r\n\r\nThis should return a valid Simple JavaScript Object encrypted.\r\n\r\n### Example\r\n\r\n```javascript\r\nimport jsonCrypto from '@danilo_pereira/json-crypto';\r\n...\r\n// SIMPLE CASE:\r\njsonCrypto.encrypt({\r\n    key_1: \"value_1\",\r\n    key_2: 2,\r\n    key_3: null,\r\n    key_4: false,\r\n    key_5: { key_5_1: \"value_5\" },\r\n    key_6: [\"value_6_1\", \"value_6_2\"],\r\n  });\r\n/*\r\nOutput:\r\n {\r\n   key_1: '126b1c3b908fc3',\r\n   key_2: '1073002bd6be87660199ef1043',\r\n   key_3: '1073002bd6be87670f',\r\n   key_4: '1073002bd6b29d640f99fc444bb14f69ce5c',\r\n   key_5: { key_5_1: '2c6b0326a3b19e7e06a3a8' },\r\n   key_6: [ '126b1c3b908fc45452', '126b1c3b908fc45451' ]\r\n }\r\n */\r\n\r\n// KEY ENCRYPT CASE:\r\njsonCrypto.encrypt({\r\n    key_1: \"value_1\",\r\n    key_2: 2,\r\n    key_3: null,\r\n    key_4: false,\r\n    key_5: { key_5_1: \"value_5\" },\r\n    key_6: [\"value_6_1\", \"value_6_2\"],\r\n  }, true);\r\n/*\r\nOutput:\r\n{\r\n  '0f6f0911c4': '126b1c3b908fc3',\r\n  '0f6f0911c7': '1073002bd6be87660199ef1043',\r\n  '0f6f0911c6': '1073002bd6be87670f',\r\n  '0f6f0911c1': '1073002bd6b29d640f99fc444bb14f69ce5c',\r\n  '0f6f0911c0': { '0f6f0911c08fc3': '2c6b0326a3b19e7e06a3a8' },\r\n  '0f6f0911c3': [ '126b1c3b908fc45452', '126b1c3b908fc45451' ]\r\n}\r\n*/\r\n\r\n// KEY ENCRYPT CASE, WITH OPTIONAL HASH:\r\njsonCrypto.encrypt({\r\n    key_1: \"value_1\",\r\n    key_2: 2,\r\n    key_3: null,\r\n    key_4: false,\r\n    key_5: { key_5_1: \"value_5\" },\r\n    key_6: [\"value_6_1\", \"value_6_2\"],\r\n}, true, \"cad63375bd783382\", \"a92e070ecd301b6de99a8985f8e9cf9f\");\r\n/*\r\nOutput:\r\n{\r\n  '16de1fe44c': '0bda0ace187253',\r\n  '16de1fe44f': '09c216de5e43174cbf5b8cd709',\r\n  '16de1fe44e': '09c216de5e43174db1',\r\n  '16de1fe449': '09c216de5e4f0d4eb15b9f830178d87bc7ff',\r\n  '16de1fe448': { '16de1fe4487253': '35da15d32b4c0e54b861cb' },\r\n  '16de1fe44b': [ '0bda0ace1872547eec', '0bda0ace1872547eef' ]\r\n}\r\nIn this case, the secret was defined at: \"cad63375bd783382####################\" (32 chars) and secret_2 was defined at: \"a92e070ecd301b6d\" (16ch)\r\n*/\r\n```\r\n\r\n## Decrypt\r\n\r\nTo decrypt a JSON or Simple JavaScript Object you should call `jsonCrypto.decrypt(json, encriptedKeys, secret, secret_2)`.\r\n\r\n### Arguments:\r\n\r\n1. json: <font size=\"1\">_REQUIRED_</font> A input JSON or Object that should be decrypted. Should be of type `JSON` or `Object`.\r\n2. encriptedKeys: <font size=\"1\">_OPTIONAL_</font> Define if Object keys will be also decrypted. Should be of type `Boolean`. The default value is `false`.\r\n3. secret: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 32 chars). Needs to be the same secret hash used to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n4. secret_2: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 16 chars). Needs to be the same secret hash used to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n\r\n### Output\r\n\r\nThis should return a valid Simple JavaScript Object decrypted.\r\n\r\n### Example\r\n\r\n```javascript\r\nimport jsonCrypto from '@danilo_pereira/json-crypto';\r\n...\r\n// SIMPLE CASE:\r\njsonCrypto.decrypt(\r\n  {\r\n   key_1: '126b1c3b908fc3',\r\n   key_2: '1073002bd6be87660199ef1043',\r\n   key_3: '1073002bd6be87670f',\r\n   key_4: '1073002bd6b29d640f99fc444bb14f69ce5c',\r\n   key_5: { key_5_1: '2c6b0326a3b19e7e06a3a8' },\r\n   key_6: [ '126b1c3b908fc45452', '126b1c3b908fc45451' ]\r\n });\r\n/*\r\nOutput:\r\n {\r\n    key_1: \"value_1\",\r\n    key_2: 2,\r\n    key_3: null,\r\n    key_4: false,\r\n    key_5: { key_5_1: \"value_5\" },\r\n    key_6: [\"value_6_1\", \"value_6_2\"],\r\n  }\r\n */\r\n\r\n// KEY ENCRYPT CASE:\r\njsonCrypto.decrypt(\r\n  {\r\n  '0f6f0911c4': '126b1c3b908fc3',\r\n  '0f6f0911c7': '1073002bd6be87660199ef1043',\r\n  '0f6f0911c6': '1073002bd6be87670f',\r\n  '0f6f0911c1': '1073002bd6b29d640f99fc444bb14f69ce5c',\r\n  '0f6f0911c0': { '0f6f0911c08fc3': '2c6b0326a3b19e7e06a3a8' },\r\n  '0f6f0911c3': [ '126b1c3b908fc45452', '126b1c3b908fc45451' ]\r\n}, true);\r\n/*\r\nOutput:\r\n{\r\n    key_1: \"value_1\",\r\n    key_2: 2,\r\n    key_3: null,\r\n    key_4: false,\r\n    key_5: { key_5_1: \"value_5\" },\r\n    key_6: [\"value_6_1\", \"value_6_2\"],\r\n  }\r\n*/\r\n\r\n\r\n// KEY ENCRYPT CASE, WITH OPTIONAL HASH:\r\njsonCrypto.decrypt({\r\n  '16de1fe44c': '0bda0ace187253',\r\n  '16de1fe44f': '09c216de5e43174cbf5b8cd709',\r\n  '16de1fe44e': '09c216de5e43174db1',\r\n  '16de1fe449': '09c216de5e4f0d4eb15b9f830178d87bc7ff',\r\n  '16de1fe448': { '16de1fe4487253': '35da15d32b4c0e54b861cb' },\r\n  '16de1fe44b': [ '0bda0ace1872547eec', '0bda0ace1872547eef' ]\r\n}, true, \"cad63375bd783382\", \"a92e070ecd301b6de99a8985f8e9cf9f\");\r\n/*\r\nOutput:\r\n{\r\n    key_1: \"value_1\",\r\n    key_2: 2,\r\n    key_3: null,\r\n    key_4: false,\r\n    key_5: { key_5_1: \"value_5\" },\r\n    key_6: [\"value_6_1\", \"value_6_2\"],\r\n}\r\nIn this case, the secret was defined at: \"cad63375bd783382####################\" (32 chars) and secret_2 was defined at: \"a92e070ecd301b6d\" (16ch)\r\n*/\r\n```\r\n\r\n## Decrypt Syngle Key\r\n\r\nTo decrypt a `String` you should call `jsonCrypto.decryptKey(string, secret, secret_2)`.\r\n\r\n### Arguments:\r\n\r\n1. string: <font size=\"1\">_REQUIRED_</font> A input string that should be decrypted. Should be of type `string`.\r\n2. secret: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 32 chars). Needs to be the same secret hash used to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n3. secret_2: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 16 chars). Needs to be the same secret hash used to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n\r\n### Output\r\n\r\nThis should return a `String`, `Number`, `Boolean` or `null` decrypted.\r\n\r\n### Example\r\n\r\n```javascript\r\nimport jsonCrypto from '@danilo_pereira/json-crypto';\r\n...\r\n// SIMPLE CASE:\r\njsonCrypto.decryptKey(\"126b1c3b908fc3\");\r\n/*\r\nOutput:\r\n\"value_1\"\r\n */\r\n\r\n```\r\n\r\n## Encrypt Syngle Key\r\n\r\nTo encrypt a `String` you should call `jsonCrypto.encryptKey(string, secret, secret_2)`.\r\n\r\n### Arguments:\r\n\r\n1. string: <font size=\"1\">_REQUIRED_</font> A input string that should be encrypted. Should be of type `string`.\r\n2. secret: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 32 chars). Needs to be the same secret hash used to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n3. secret_2: <font size=\"1\">_OPTIONAL_</font> Secret hex string (with up to 16 chars). Needs to be the same secret hash used to encrypt. Should be of type `String`. We use a default hash if not informed.\r\n\r\n### Output\r\n\r\nThis should return a `String`, `Number`, `Boolean` or `null` decrypted.\r\n\r\n### Example\r\n\r\n```javascript\r\nimport jsonCrypto from '@danilo_pereira/json-crypto';\r\n...\r\n// SIMPLE CASE:\r\njsonCrypto.decryptKey(\"126b1c3b908fc3\");\r\n/*\r\nOutput:\r\n\"value_1\"\r\n */\r\n\r\n```\r\n\r\n# Authors\r\n\r\n<table>\r\n  <tr>\r\n    <td align=\"center\"><a href=\"https://www.linkedin.com/in/danilojpferreira/\"><img style=\"border-radius: 50%;\" height=\"auto\" width=\"100px\" src=\"https://avatars.githubusercontent.com/u/43321038\"><br /><p><b>Danilo Pereira</b></p></a><p>Author</p></td>\r\n  </tr>\r\n</table>\r\n\r\n# License\r\n\r\nThis project is under the [GNU General Public License](./LICENSE).\r\n\r\n---\r\n\r\nDocumentation Template made by:\r\n\r\n<table>\r\n  <tr>\r\n    <td align=\"center\"><a href=\"https://www.linkedin.com/in/leticia-vigna/\"><img style=\"border-radius: 50%;\" height=\"auto\" width=\"100px\" src=\"https://avatars.githubusercontent.com/u/41032355\"><br /><p><b>Letícia Vigna</b></p></a><p>Documentation template author</p></td>\r\n  </tr>\r\n</table>\r\n","readmeFilename":"README.md"}