📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP

apache-md5

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apache-md5

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

1.1.8
latest
Version published
Maintainers
1
Created

What is apache-md5?

The apache-md5 npm package is used to create and verify Apache-style MD5 hashed passwords. This is particularly useful for applications that need to authenticate users against a password file used by Apache HTTP Server.

What are apache-md5's main functionalities?

Creating an Apache MD5 Hash

This feature allows you to create an Apache-style MD5 hash from a plain text password. The generated hash can be stored and used for password verification.

const apacheMD5 = require('apache-md5');
const hash = apacheMD5('password');
console.log(hash);

Verifying an Apache MD5 Hash

This feature allows you to verify a plain text password against an existing Apache-style MD5 hash. It returns a boolean indicating whether the password matches the hash.

const apacheMD5 = require('apache-md5');
const hash = apacheMD5('password');
const isMatch = apacheMD5('password', hash) === hash;
console.log(isMatch);

Other packages similar to apache-md5

FAQs

Package last updated on 21 Sep 2022

Did you know?

Socket

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