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

@aws-sdk/md5-js

Package Overview
Dependencies
Maintainers
5
Versions
122
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/md5-js

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/md5-js/beta.svg)](https://www.npmjs.com/package/@aws-sdk/md5-js) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/md5-js.svg)](https://www.npmjs.com/package/@aws-sdk/md5-js)

  • 1.0.0-gamma.8
  • gamma
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.1M
increased by3.76%
Maintainers
5
Weekly downloads
 
Created

What is @aws-sdk/md5-js?

@aws-sdk/md5-js is a JavaScript library provided by AWS that allows you to compute MD5 hashes. It is part of the AWS SDK for JavaScript and is typically used for generating checksums for data integrity verification.

What are @aws-sdk/md5-js's main functionalities?

Compute MD5 Hash

This feature allows you to compute the MD5 hash of a given input string. The code sample demonstrates how to create an instance of the Md5 class, update it with a string, and then compute the hash synchronously.

const { Md5 } = require('@aws-sdk/md5-js');

const md5 = new Md5();
md5.update('Hello, world!');
const hash = md5.digestSync();
console.log(Buffer.from(hash).toString('hex'));

Compute MD5 Hash Asynchronously

This feature allows you to compute the MD5 hash of a given input string asynchronously. The code sample demonstrates how to create an instance of the Md5 class, update it with a string, and then compute the hash using a promise.

const { Md5 } = require('@aws-sdk/md5-js');

const md5 = new Md5();
md5.update('Hello, world!');
md5.digest().then(hash => {
  console.log(Buffer.from(hash).toString('hex'));
});

Other packages similar to @aws-sdk/md5-js

FAQs

Package last updated on 07 Oct 2020

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