Package Exports
- apache-md5
- apache-md5/src/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (apache-md5) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
apache-md5
Node.js package for Apache style password encryption using md5.
Installation
Via git (or downloaded tarball):
$ git clone git://github.com/gevorg/apache-md5.gitVia npm:
$ npm install apache-md5Usage
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 testLicense
The MIT License (MIT)