You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openrank/front/node_modules/apache-crypt
weixin_74091448 55a59cde8b
加了前端
3 months ago
..
src 加了前端 3 months ago
LICENSE 加了前端 3 months ago
README.md 加了前端 3 months ago
package.json 加了前端 3 months ago

README.md

apache-crypt

Node.js package for Apache style password encryption using crypt(3).

build

Installation

Via git (or downloaded tarball):

$ git clone git://github.com/gevorg/apache-crypt.git

Via npm:

$ npm install apache-crypt

Usage

const crypt = require("apache-crypt");

// Encrypting password using auto-generated 2 char salt.
const encryptedPassword = crypt("mypass");

// Should print true.
console.log(crypt("mypass", encryptedPassword) == encryptedPassword);
// Should print false.
console.log(crypt("notmypass", encryptedPassword) == encryptedPassword);

Running tests

It uses mocha, so just run following command in package directory:

$ npm test

License

The MIT License (MIT)