{"_id":"crypt3","_rev":"411913","name":"crypt3","description":"Node.js crypt(3) bindings","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"time":{"modified":"2021-08-04T05:11:19.000Z","created":"2013-08-05T22:21:52.676Z","1.0.0":"2016-07-31T13:46:32.481Z","0.2.0":"2015-11-07T12:14:14.663Z","0.1.8":"2015-04-15T21:31:30.402Z","0.1.7":"2015-02-15T22:11:47.384Z","0.1.6":"2014-11-05T03:11:23.853Z","0.1.5":"2014-06-27T02:29:05.506Z","0.1.4":"2014-02-27T11:56:00.269Z","0.1.3":"2014-02-07T12:31:06.015Z","0.1.2":"2013-11-09T22:35:16.793Z","0.1.1":"2013-08-05T22:23:47.968Z","0.1.0":"2013-08-05T22:21:52.676Z"},"users":{"fgribreau":true},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"repository":{"type":"git","url":"git+https://github.com/sendanor/node-crypt3.git"},"versions":{"1.0.0":{"name":"crypt3","version":"1.0.0","description":"Node.js crypt(3) bindings","main":"src/index.js","scripts":{"test":"node test/test.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"git+https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"nan":"^2.1.0","q":"^1.0.1"},"optionalDependencies":{"q":"^1.0.1"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"gitHead":"a18aefc6598fe544fda0ff962f703d20a29a3ec6","bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3#readme","_id":"crypt3@1.0.0","_shasum":"8a658f1d16999b5505adc96cccd7bc683214befe","_from":".","_npmVersion":"2.15.8","_nodeVersion":"4.4.7","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"dist":{"shasum":"8a658f1d16999b5505adc96cccd7bc683214befe","size":5264,"noattachment":false,"key":"/crypt3/-/crypt3-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-1.0.0.tgz"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/crypt3-1.0.0.tgz_1469972789528_0.16367611614987254"},"directories":{},"publish_time":1469972792481,"_cnpm_publish_time":1469972792481,"_hasShrinkwrap":false},"0.2.0":{"name":"crypt3","version":"0.2.0","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"node test/test.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"nan":"^2.1.0"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"gitHead":"fccdcd3dab8ed9bb9c5a37ef19014e57aafc8739","bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3","_id":"crypt3@0.2.0","_shasum":"4bd28e0770fad421fc807745c1ef3010905b2332","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"dist":{"shasum":"4bd28e0770fad421fc807745c1ef3010905b2332","size":3171,"noattachment":false,"key":"/crypt3/-/crypt3-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.2.0.tgz"},"directories":{},"publish_time":1446898454663,"_cnpm_publish_time":1446898454663,"_hasShrinkwrap":false},"0.1.8":{"name":"crypt3","version":"0.1.8","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"node test/test.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"nan":"1 >=1.6.2"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"gitHead":"5892a55ae69ebf30268d4adb99fe67143d5e1a4f","bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3","_id":"crypt3@0.1.8","_shasum":"60f27edeb4ec10703012463e6b974c73a1129688","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"dist":{"shasum":"60f27edeb4ec10703012463e6b974c73a1129688","size":2995,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.8.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.8.tgz"},"directories":{},"publish_time":1429133490402,"_cnpm_publish_time":1429133490402,"_hasShrinkwrap":false},"0.1.7":{"name":"crypt3","version":"0.1.7","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"node test/test.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"nan":"1 >=1.6.2"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"gitHead":"06b7d059eae3bf0168c13ff5350477f45b86d746","bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3","_id":"crypt3@0.1.7","_shasum":"fa420e17984d6042a34de5c6d8c2fc4e27017853","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"dist":{"shasum":"fa420e17984d6042a34de5c6d8c2fc4e27017853","size":2948,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.7.tgz"},"directories":{},"publish_time":1424038307384,"_cnpm_publish_time":1424038307384,"_hasShrinkwrap":false},"0.1.6":{"name":"crypt3","version":"0.1.6","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"node test/test.js","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"nan":"~1.3.0"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"gitHead":"8b47b4a2f542a7d9a80a62870ef3e4af0d751b33","bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3","_id":"crypt3@0.1.6","_shasum":"1f3c0124f2987eb736d731b578f5c7756a2f9f3f","_from":".","_npmVersion":"1.4.28","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"dist":{"shasum":"1f3c0124f2987eb736d731b578f5c7756a2f9f3f","size":2944,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.6.tgz"},"directories":{},"publish_time":1415157083853,"_cnpm_publish_time":1415157083853,"_hasShrinkwrap":false},"0.1.5":{"name":"crypt3","version":"0.1.5","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"gitHead":"50e6965af6c7e4a0cc12062c70c4e9ff3aa45eec","bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3","_id":"crypt3@0.1.5","_shasum":"e2a688f34d45c16da9139ed8acba5da5679e8c3b","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"dist":{"shasum":"e2a688f34d45c16da9139ed8acba5da5679e8c3b","size":2810,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.5.tgz"},"directories":{},"publish_time":1403836145506,"_cnpm_publish_time":1403836145506,"_hasShrinkwrap":false},"0.1.4":{"name":"crypt3","version":"0.1.4","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"node-gyp":"*"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3","_id":"crypt3@0.1.4","dist":{"shasum":"5c32dedc21330011443536b2b42f3a77d0f4f7f5","size":2824,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"directories":{},"publish_time":1393502160269,"_cnpm_publish_time":1393502160269,"_hasShrinkwrap":false},"0.1.3":{"name":"crypt3","version":"0.1.3","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"node-gyp":"*"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"homepage":"https://github.com/sendanor/node-crypt3","_id":"crypt3@0.1.3","dist":{"shasum":"f8ea82e2facca2922380da8336e222b220aebe5f","size":2787,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.3.tgz"},"_from":".","_npmVersion":"1.3.24","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"directories":{},"publish_time":1391776266015,"_cnpm_publish_time":1391776266015,"_hasShrinkwrap":false},"0.1.2":{"name":"crypt3","version":"0.1.2","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/Sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"node-gyp":"*"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"readmeFilename":"README.md","bugs":{"url":"https://github.com/Sendanor/node-crypt3/issues"},"_id":"crypt3@0.1.2","dist":{"shasum":"94fdb858ed8240d51a99582cf36034302ddb88ec","size":2750,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.2.tgz"},"_from":".","_npmVersion":"1.3.11","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"directories":{},"publish_time":1384036516793,"_cnpm_publish_time":1384036516793,"_hasShrinkwrap":false},"0.1.1":{"name":"crypt3","version":"0.1.1","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/Sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"node-gyp":"*"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"readmeFilename":"README.md","bugs":{"url":"https://github.com/Sendanor/node-crypt3/issues"},"_id":"crypt3@0.1.1","dist":{"shasum":"e7393cb70005c3b02629ecc85e7970db2c8c54d2","size":2740,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.1.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"directories":{},"publish_time":1375741427968,"_cnpm_publish_time":1375741427968,"_hasShrinkwrap":false},"0.1.0":{"name":"crypt3","version":"0.1.0","description":"Node.js crypt(3) bindings","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","install":"node-gyp rebuild"},"repository":{"type":"git","url":"https://github.com/Sendanor/node-crypt3.git"},"keywords":["crypt","password","md5","sha256","sha512","blowfish","hash"],"dependencies":{"node-gyp":"*"},"author":{"name":"Jaakko-Heikki Heusala","email":"jheusala@iki.fi"},"license":"MIT","gypfile":true,"readmeFilename":"README.md","bugs":{"url":"https://github.com/Sendanor/node-crypt3/issues"},"_id":"crypt3@0.1.0","dist":{"shasum":"73899ef9b3f4be8c0cac87feb33495f6135cf78f","size":2738,"noattachment":false,"key":"/crypt3/-/crypt3-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/crypt3/download/crypt3-0.1.0.tgz"},"_from":".","_npmVersion":"1.3.2","_npmUser":{"name":"jhh","email":"jhh@sendanor.com"},"maintainers":[{"name":"jhh","email":"jhh@sendanor.com"}],"directories":{},"publish_time":1375741312676,"_cnpm_publish_time":1375741312676,"_hasShrinkwrap":false}},"readme":"node-crypt3\n===========\n\n[crypt3link]: https://en.wikipedia.org/wiki/Crypt_(C) \"crypt() in C\"\n\n[crypt(3)][crypt3link] for Node.js\n\nInstallation\n------------\n\nInstall using `npm install crypt3` and use:\n\n### Promise version using [Q library](https://github.com/kriskowal/q)\n\n```javascript\nvar crypt = require('crypt3/q');\n```\n\n```javascript\ncrypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/').then(function(value) {\n\tif( value !== '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/' ) {\n\t\tconsole.error('Access denied!');\n\t\treturn;\n\t}\n}).fail(function(err) {\n\t...\n});\n```\n\n### Async version\n\n```javascript\nvar crypt = require('crypt3/async');\n```\n\n```javascript\ncrypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/', function(err, value) {\n\tif(err) {\n\t\t...\n\t\treturn;\n\t}\n\tif( value !== '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/' ) {\n\t\tconsole.error('Access denied!');\n\t\treturn;\n\t}\n});\n```\n\n### Sync version\n\n```javascript\nvar crypt = require('crypt3/sync');\n```\n\n```javascript\nif( crypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/') !== '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/' ) {\n\tconsole.error('Access denied!');\n\treturn;\n}\n```\n\n#### Example password encoding\n\nUse `crypt(key[, salt])`:\n\n```javascript\nconsole.log( crypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh') );                                   // Salt generated automatically using default SHA512\nconsole.log( crypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', crypt.createSalt('md5') ) );         // MD5 salt\nconsole.log( crypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', crypt.createSalt('blowfish') ) );    // Blowfish salt (only some Linux distros)\nconsole.log( crypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', crypt.createSalt('sha256') ) );      // SHA-256\nconsole.log( crypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', crypt.createSalt('sha512') ) );      // SHA-512\n```\n\nCreate hashes\n-------------\n\nUse `crypt.createSalt([type=sha512])` where type is one of `md5`, `blowfish`, `sha256` or `sha512` (default). \n\nCommercial Support\n------------------\n\nYou can buy commercial support from [Sendanor](http://sendanor.com/software).\n","_attachments":{},"homepage":"https://github.com/sendanor/node-crypt3#readme","bugs":{"url":"https://github.com/sendanor/node-crypt3/issues"},"license":"MIT"}