Socket
Socket
Sign inDemoInstall

ripemd160

Package Overview
Dependencies
0
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    ripemd160

Compute RIPEMD160 of bytes or strings.


Version published
Maintainers
3
Install size
8.74 kB
Created

Package description

What is ripemd160?

The ripemd160 npm package is a JavaScript implementation of the RIPEMD-160 cryptographic hash function. It allows users to generate 160-bit hash values from input data. This hash function is commonly used for integrity checks, digital signatures, and other cryptographic operations.

What are ripemd160's main functionalities?

Hashing Data

This feature allows users to create a RIPEMD-160 hash of any given string or buffer. The example code demonstrates how to hash the string 'hello world' and output the result in hexadecimal format.

"use strict";\nconst ripemd160 = require('ripemd160');\nconst hash = new ripemd160().update('hello world').digest('hex');\nconsole.log(hash); // Outputs the RIPEMD-160 hash of 'hello world' in hexadecimal format

Other packages similar to ripemd160

Readme

Source

ripemd160

JavaScript component to compute the RIPEMD160 hash of strings or bytes.

Install

Node.js/Browserify

npm install --save ripemd160

Usage

ripemd160(input)

Input either a string or Buffer. Output is a Buffer.

console.log(ripemd160("hello").toString('hex')) // => 108f07b8382412612c048d07d13f814118445acd"

Credits

Most of the code from CryptoJS https://code.google.com/p/crypto-js/

Keywords

FAQs

Last updated on 09 Mar 2014

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