websocket快速操作工具
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.
 
 
maochaoying 114fd78c3b add ignore 2 years ago
..
src live-server command 2 years ago
LICENSE live-server command 2 years ago
README.md live-server command 2 years ago
package.json live-server command 2 years ago

README.md

apache-md5

Node.js package for Apache style password encryption using md5.

build

Installation

Via git (or downloaded tarball):

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

Via npm:

$ npm install apache-md5

Usage

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

// Encrypting password using apache's md5 algorithm.
const encryptedPassword = md5("mypass");

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

Running tests

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

$ npm test

License

The MIT License (MIT)