mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-30 22:34:10 -05:00
install crypt3 from npm registry
This commit is contained in:
parent
ca3cb6487d
commit
322f64d517
5 changed files with 48 additions and 13 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -19,5 +19,6 @@ test-storage*
|
|||
!/node_modules/tar.gz
|
||||
!/node_modules/sinopia-htpasswd
|
||||
!/node_modules/crypt3
|
||||
/node_modules/crypt3/build
|
||||
!/node_modules/http-errors
|
||||
|
||||
|
|
0
node_modules/crypt3/.gitignore → node_modules/crypt3/.npmignore
generated
vendored
0
node_modules/crypt3/.gitignore → node_modules/crypt3/.npmignore
generated
vendored
24
node_modules/crypt3/node_modules/nan/package.json
generated
vendored
24
node_modules/crypt3/node_modules/nan/package.json
generated
vendored
File diff suppressed because one or more lines are too long
34
node_modules/crypt3/package.json
generated
vendored
34
node_modules/crypt3/package.json
generated
vendored
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "crypt3",
|
||||
"version": "0.1.5",
|
||||
"version": "0.1.6",
|
||||
"description": "Node.js crypt(3) bindings",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
@ -20,21 +20,39 @@
|
|||
"blowfish",
|
||||
"hash"
|
||||
],
|
||||
"dependencies": { "nan": "~1.3.0" },
|
||||
"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",
|
||||
"gitHead": "8b47b4a2f542a7d9a80a62870ef3e4af0d751b33",
|
||||
"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"
|
||||
"_id": "crypt3@0.1.6",
|
||||
"_shasum": "1f3c0124f2987eb736d731b578f5c7756a2f9f3f",
|
||||
"_from": "crypt3@>=0.1.6 <1.0.0-0",
|
||||
"_npmVersion": "1.4.28",
|
||||
"_npmUser": {
|
||||
"name": "jhh",
|
||||
"email": "jhh@sendanor.com"
|
||||
},
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "jhh",
|
||||
"email": "jhh@sendanor.com"
|
||||
}
|
||||
],
|
||||
"dist": {
|
||||
"shasum": "1f3c0124f2987eb736d731b578f5c7756a2f9f3f",
|
||||
"tarball": "http://registry.npmjs.org/crypt3/-/crypt3-0.1.6.tgz"
|
||||
},
|
||||
"directories": {},
|
||||
"_resolved": "https://registry.npmjs.org/crypt3/-/crypt3-0.1.6.tgz",
|
||||
"readme": "ERROR: No README data found!"
|
||||
}
|
||||
|
|
|
@ -56,7 +56,7 @@ optionalDependencies:
|
|||
# those are native modules that could fail to compile
|
||||
# and unavailable on windows
|
||||
fs-ext: '>=0.3.2 <1.0.0-0'
|
||||
crypt3: 'git://github.com/sendanor/node-crypt3.git' # for sinopia-htpasswd
|
||||
crypt3: '>=0.1.6 <1.0.0-0' # for sinopia-htpasswd
|
||||
|
||||
# Policy for now:
|
||||
# - small, unstable and rarely updated libraries (i.e. crypt3) get bundled
|
||||
|
|
Loading…
Reference in a new issue