JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 948280
  • Score
    100M100P100Q188900F
  • License MIT

Create a MD5 hash with hex encoding

Package Exports

  • md5-hex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (md5-hex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

md5-hex Build Status

Create a MD5 hash with hex encoding

Please don't use a MD5 hash for anything sensitive!

Install

$ npm install --save md5-hex

Usage

var fs = require('fs');
var md5Hex = require('md5-hex');
var buffer = fs.readFileSync('unicorn.png');

md5Hex(buffer);
//=> '1abcb33beeb811dca15f0ac3e47b88d9'

API

md5Hex(input)

input

Required
Type: buffer, string

Prefer buffers as they're faster to hash, but strings can be useful for small things.

License

MIT © Sindre Sorhus