Socket
Socket
Sign inDemoInstall

md5.js

Package Overview
Dependencies
6
Maintainers
4
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    md5.js

node style md5 on pure JavaScript


Version published
Weekly downloads
7.6M
decreased by-16.43%
Maintainers
4
Install size
194 kB
Created
Weekly downloads
 

Package description

What is md5.js?

The md5.js npm package is a JavaScript library for hashing messages with MD5. MD5 is a widely used cryptographic hash function that produces a 128-bit (16-byte) hash value. It's commonly used to check the integrity of files and create digital signatures. The md5.js package allows for easy integration of MD5 hashing into JavaScript applications, both in the browser and in Node.js environments.

What are md5.js's main functionalities?

Hashing a string

This feature allows you to hash a string using MD5. The example code demonstrates how to create a new MD5 hash instance, update it with a string ('hello'), and then digest the hash in hexadecimal format. This is useful for generating a hash of passwords or any other sensitive information that needs to be stored securely.

"use strict"; const MD5 = require('md5.js'); const hash = new MD5().update('hello').digest('hex'); console.log(hash);

Other packages similar to md5.js

Readme

Source

md5.js

NPM Package Build Status Dependency status

js-standard-style

Node style md5 on pure JavaScript.

From NIST SP 800-131A: md5 is no longer acceptable where collision resistance is required such as digital signatures.

Example

var MD5 = require('md5.js')

console.log(new MD5().update('42').digest('hex'))
// => a1d0c6e83f027327d8461063f4ac58a6

var md5stream = new MD5()
md5stream.end('42')
console.log(md5stream.read().toString('hex'))
// => a1d0c6e83f027327d8461063f4ac58a6

LICENSE MIT

Keywords

FAQs

Last updated on 02 Oct 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc