verdaccio/node_modules/crypt3/package.json

41 lines
2.3 KiB
JSON

{
"name": "crypt3",
"version": "0.1.5",
"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,
"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```javascript\nvar crypt = require('crypt3');\n```\n\nExample password check\n----------------------\n\n```javascript\nif( crypt('6Xz7sS6fEmnWScMb6Ayf363e5cdqF4Kh', '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/') !== '$1$SrkubyRm$DEQU3KupUxt4yfhbK1HyV/' ) {\n\tconsole.error('Access denied!');\n\treturn;\n}\n```\n\nExample password encoding\n-------------------------\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",
"readmeFilename": "README.md",
"bugs": {
"url": "https://github.com/sendanor/node-crypt3/issues"
},
"homepage": "https://github.com/sendanor/node-crypt3",
"_id": "crypt3@0.1.5",
"_shasum": "f21e9ba7a57736f47e0654ad27f8668966de02db",
"_resolved": "git://github.com/sendanor/node-crypt3.git#9b893c95ed956adc3da681b125c371112b1ad31d",
"_from": "crypt3@git://github.com/sendanor/node-crypt3.git"
}