# md5hex

> Thin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer

Latest version **1.0.0** (published 2015-06-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install md5hex
pnpm add md5hex
yarn add md5hex
bun add md5hex
```

## 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-06-02 |
| First published | 2015-06-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | exponent.team@gmail.com |
| Maintainers | ccheever |
| Keywords | md5hex, md5, hex, hash, crypto |

## Links

- npm: https://www.npmjs.com/package/md5hex
- Repository: https://github.com/650Industries/md5hex
- Homepage: https://github.com/650Industries/md5hex#readme
- Issues: https://github.com/650Industries/md5hex/issues
- npm.io page: https://npm.io/package/md5hex

## 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-06-02

## README

# md5hex
Thin wrapper around the crypto module that creates an MD5 hex digest of a given string or buffer

```js
// Basic usage
var hexHash = md5hex('A string you want to hash'); // (You can also pass in a buffer)
// 'afb6e4ac5196aa6cddcfbd8fe26cf65b'


// Optional second argument lets you trim the length
var hexHash = md5hex('A string you want to hash', 6);
// 'afb6e4'

// Or you can give an options object as the second argument to add a salt
var hexHash = md5hex('A string you want to prefix with a salt', {salt: 'MYSALT!'})
// Same as md5hex('MYSALT!' + 'A string you want to prefix with a salt')

var hexHash = md5hex('A string you want to prefix with a salt', {saltPrefix: 'SALT!', saltSuffix: 'MORESALT!'})
// Same as md5hex('SALT!' + 'A string you want to prefix with a salt' + 'MORESALT!')

// And control the length through the options object
var hexHash = md5hex('A string you want a short hash of', {length: 6});
// '30540f'



```

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