# apache-md5

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

Latest version **1.1.8** (published 2022-09-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install apache-md5
pnpm add apache-md5
yarn add apache-md5
bun add apache-md5
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.8 |
| Published | 2022-09-21 |
| First published | 2013-12-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Gevorg Harutyunyan |
| Maintainers | gevorg |
| Keywords | apache, md5, password, htpasswd |

## Links

- npm: https://www.npmjs.com/package/apache-md5
- Repository: https://github.com/gevorg/apache-md5
- Homepage: http://github.com/gevorg/apache-md5
- Issues: http://github.com/gevorg/apache-md5/issues
- npm.io page: https://npm.io/package/apache-md5

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 1.1.8 (latest) — 2022-09-21
- 1.1.7 — 2021-06-25
- 1.1.6 — 2021-06-24
- 1.1.5 — 2020-02-03
- 1.1.4 — 2020-02-02
- 1.1.3 — 2020-02-02
- 1.1.2 — 2016-10-24
- 1.1.1 — 2016-10-18
- 1.1.0 — 2016-10-18
- 1.0.6 — 2016-06-10
- 1.0.5 — 2016-05-13
- 1.0.4 — 2016-04-01
- 1.0.3 — 2015-10-28
- 1.0.2 — 2015-10-22
- 1.0.0 — 2013-12-28

## README

# apache-md5
[Node.js](http://nodejs.org/) package for Apache style password encryption using md5.

[![build](https://github.com/gevorg/apache-md5/workflows/build/badge.svg)](https://github.com/gevorg/apache-md5/actions/workflows/build.yml)

## Installation

Via git (or downloaded tarball):

```bash
$ git clone git://github.com/gevorg/apache-md5.git
```
Via [npm](http://npmjs.org/):

```bash
$ npm install apache-md5
```

## Usage

```javascript
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](https://mochajs.org/), so just run following command in package directory:

```bash
$ npm test
```

## License

The MIT License (MIT)

---
_Source: https://npm.io/package/apache-md5 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
