Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

blueimp-md5

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

blueimp-md5

JavaScript MD5 implementation. Compatible with server-side environments like Node.js, module loaders like RequireJS, Browserify or webpack and all web browsers.

  • 2.1.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created

What is blueimp-md5?

The blueimp-md5 package is a JavaScript function for hashing messages with MD5. It is commonly used to create 128-bit hash values from strings. The package can be used both in browser environments and in Node.js applications, making it versatile for various web development needs.

What are blueimp-md5's main functionalities?

MD5 Hashing

This feature allows the user to generate an MD5 hash from a given string. It is useful for creating unique identifiers or checksums from large volumes of data.

const md5 = require('blueimp-md5');
const hash = md5('Hello World');
console.log(hash); // Outputs MD5 hash of 'Hello World'

MD5 Hashing with a Key

This feature enhances the basic hashing functionality by allowing a key (or salt) to be included in the hash process. This is particularly useful for creating more secure hashes by adding an additional layer of complexity.

const md5 = require('blueimp-md5');
const hash = md5('Hello World', 'secretKey');
console.log(hash); // Outputs MD5 hash of 'Hello World' using 'secretKey' as the salt

MD5 Hashing with Raw Output

This feature allows the user to obtain the raw binary output of the MD5 hash, rather than the default hexadecimal string. This might be useful in scenarios where binary data is required for further processing.

const md5 = require('blueimp-md5');
const hash = md5('Hello World', null, true);
console.log(hash); // Outputs raw binary format of MD5 hash

Other packages similar to blueimp-md5

Keywords

FAQs

Package last updated on 27 Dec 2015

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc