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

@ethersproject/hash

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethersproject/hash

Hash utility functions for Ethereum.

  • 5.0.0-beta.126
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
971K
increased by9.87%
Maintainers
1
Weekly downloads
 
Created

What is @ethersproject/hash?

@ethersproject/hash is a part of the ethers.js library, which provides utilities for hashing data. It includes functions for creating various cryptographic hashes, such as Keccak256, SHA256, and RIPEMD160, which are commonly used in Ethereum and other blockchain applications.

What are @ethersproject/hash's main functionalities?

Keccak256 Hashing

This feature allows you to create a Keccak256 hash of the given data. Keccak256 is a cryptographic hash function used extensively in Ethereum.

const { keccak256 } = require('@ethersproject/hash');
const data = '0x123456';
const hash = keccak256(data);
console.log(hash);

SHA256 Hashing

This feature allows you to create a SHA256 hash of the given data. SHA256 is a widely used cryptographic hash function.

const { sha256 } = require('@ethersproject/hash');
const data = '0x123456';
const hash = sha256(data);
console.log(hash);

RIPEMD160 Hashing

This feature allows you to create a RIPEMD160 hash of the given data. RIPEMD160 is another cryptographic hash function used in various blockchain applications.

const { ripemd160 } = require('@ethersproject/hash');
const data = '0x123456';
const hash = ripemd160(data);
console.log(hash);

Other packages similar to @ethersproject/hash

Keywords

FAQs

Package last updated on 03 Aug 2019

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