You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

md5-nodejs

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

md5-nodejs

Utility to hash data to MD5 and/or convert MD5 hashes to UUID


Version published
Maintainers
1
Created

Readme

Source

md5-nodejs

A node module that hashes data to MD5

Install

npm install md5-nodejs

Usage

const md5 = require('md5-nodejs');
const hash = md5('data to hash');

Hash Anything!

Here are some examples

Hash strings
const hash = md5('string to hash');
Hash buffers
const hash = md5(Buffer.from('carmine'));
Hash TypedArrays
const int16Array = new Int16Array(2);
int16Array[0] = 42;
const hash = md5(int16Array);
Hash objects
const hash = md5({
    name: 'carmine'
});
Hash arrays
const hash = md5(['hash', 'this', 'array']);
Hash primitives
const hash = md5(3.14159265359);
const hash = md5(true);

License

MIT

Keywords

FAQs

Package last updated on 19 Nov 2018

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc