Socket
Socket
Sign inDemoInstall

apache-md5

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apache-md5

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


Version published
Weekly downloads
558K
decreased by-2.06%
Maintainers
1
Install size
6.14 kB
Created
Weekly downloads
 

Readme

Source

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)

Keywords

FAQs

Last updated on 21 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc