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

md5-hex

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

md5-hex

Create a MD5 hash with hex encoding

  • 5.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
771K
increased by4.6%
Maintainers
1
Weekly downloads
 
Created

What is md5-hex?

The md5-hex npm package is a utility for generating MD5 hashes from strings or buffers. It is a simple and efficient way to create MD5 hashes, which are commonly used for checksums, data integrity verification, and other cryptographic purposes.

What are md5-hex's main functionalities?

Generate MD5 hash from a string

This feature allows you to generate an MD5 hash from a given string. The code sample demonstrates how to import the md5-hex package and generate a hash for the string 'hello world'.

const md5Hex = require('md5-hex');
const hash = md5Hex('hello world');
console.log(hash); // Outputs: 5eb63bbbe01eeed093cb22bb8f5acdc3

Generate MD5 hash from a buffer

This feature allows you to generate an MD5 hash from a buffer. The code sample shows how to create a buffer from the string 'hello world' and then generate its MD5 hash.

const md5Hex = require('md5-hex');
const buffer = Buffer.from('hello world');
const hash = md5Hex(buffer);
console.log(hash); // Outputs: 5eb63bbbe01eeed093cb22bb8f5acdc3

Other packages similar to md5-hex

Keywords

FAQs

Package last updated on 22 Oct 2023

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