# crypto-md5

> Simply expose crypto md5 as a single function

Latest version **1.0.0** (published 2015-04-04) · BSD license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2015-04-04 |
| First published | 2015-04-04 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.5.2 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | Jerome Touffe-Blin |
| Maintainers | jtblin |
| Keywords | crypto, md5, hash |

## Links

- npm: https://www.npmjs.com/package/crypto-md5
- Repository: https://github.com/jtblin/crypto-md5
- Issues: https://github.com/jtblin/crypto-md5/issues
- npm.io page: https://npm.io/package/crypto-md5

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2015-04-04

## README

[![NPM version](https://badge.fury.io/js/crypto-md5.svg)](http://badge.fury.io/js/crypto-md5)

# crypto-md5

There are several md5 modules on npm, but none of them use the `crypto` node module.
Researching the performance impact of one vs another is tedious, and I just wanted to
use the core one without having to duplicate code all the time so I just implemented
this function as a separate module.

## Usage

    npm install --save crypto-md5

## API

### md5(data, digest)

  Returns a base64 md5 hash of the buffer or string. Can return an hex digest.

* `data`: buffer or string to hash
* `digest`: optional digest type. Can be `base64` (default) or `hex`

```js
var md5 = require('md5');

md5('foobar');

// OFj2IjCsPJFfMAxmQxLGPw==

md5('foobar', 'hex');

// 3858f62230ac3c915f300c664312c63f
```

## Contributions

Please open issues for bugs and suggestions in [github](https://github.com/jtblin/crypto-md5/issues).
Pull requests with tests are welcome.

## Author

Jerome Touffe-Blin, [@jtblin](https://twitter.com/jtlbin), [About me](http://about.me/jtblin)

## License

crypto-md5 is copyright 2015 Jerome Touffe-Blin and contributors. It is licensed under the BSD license.
See the include LICENSE file for details.

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