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

crypto-hashing

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-hashing

Easy interfaces for cryptographic hash functions

  • 0.2.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Crypto Hashing

Provides a common interface for cryptographic hash functions commonly used in cryptocoin protocols.

Usage

If only interested in sub-set of hashes, reference just that function of the exported module:

var sha256 = require('crypto-hashing').sha256;

console.log(sha256('hello'));
console.log(sha256.x2('hello'));

Or reference the whole module for all the functions:

var hash = require('crypto-hashing');

console.log(hash.sha256('hello'));
console.log(hash.ripemd160('hello'));

Test

Unit tests are written in Mocha. To run the test suite, install mocha either by installing it globally or installing the development dependencies with NPM. Then, from within the project's folder run mocha.

Keywords

FAQs

Package last updated on 24 Feb 2014

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