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

js-sha3

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-sha3

A simple SHA-3 / Keccak / Shake hash function for JavaScript supports UTF-8 encoding.

  • 0.9.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.7M
increased by7.95%
Maintainers
1
Weekly downloads
 
Created

What is js-sha3?

The js-sha3 npm package is a JavaScript implementation of the SHA3 (Secure Hash Algorithm 3) cryptographic hash function. It provides a simple interface to compute hashes using the SHA3 family of hash functions, including SHA3-224, SHA3-256, SHA3-384, and SHA3-512, as well as the SHAKE128 and SHAKE256 extendable-output functions.

What are js-sha3's main functionalities?

SHA3-256 Hash

This feature allows you to compute a SHA3-256 hash of a given input string. The code sample demonstrates how to import the sha3_256 function from the js-sha3 package and use it to hash the string 'message'.

"use strict"; const { sha3_256 } = require('js-sha3'); const hash = sha3_256('message'); console.log(hash);

SHA3-512 Hash

This feature allows you to compute a SHA3-512 hash of a given input string. The code sample demonstrates how to import the sha3_512 function from the js-sha3 package and use it to hash the string 'message'.

"use strict"; const { sha3_512 } = require('js-sha3'); const hash = sha3_512('message'); console.log(hash);

SHAKE128 Hash

This feature allows you to compute a SHAKE128 hash of a given input string with a specified output length. The code sample demonstrates how to import the shake128 function from the js-sha3 package and use it to hash the string 'message' with an output length of 256 bits.

"use strict"; const { shake128 } = require('js-sha3'); const hash = shake128('message', 256); console.log(hash);

SHAKE256 Hash

This feature allows you to compute a SHAKE256 hash of a given input string with a specified output length. The code sample demonstrates how to import the shake256 function from the js-sha3 package and use it to hash the string 'message' with an output length of 512 bits.

"use strict"; const { shake256 } = require('js-sha3'); const hash = shake256('message', 512); console.log(hash);

Other packages similar to js-sha3

Keywords

FAQs

Package last updated on 16 Sep 2023

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