Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 8, 2024 via pnpm

hash.js 1.1.7

Various hash functions that could be run by both browser and node
Package summary
Share
0
issues
2
licenses
2
ISC
1
MIT
Package created
25 Apr 2014
Version published
30 Nov 2018
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
2 Packages, Including:
inherits@2.0.4
minimalistic-assert@1.0.1

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
hash.js@1.1.7
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of hash.js 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
inherits2.0.41.98 kBISC
prod
minimalistic-assert1.0.11020 BISC
prod

Visualizations

Frequently Asked Questions

What does hash.js do?

Hash.js serves as an efficient JavaScript library that incorporates various hash functions executable in both web browsers and node.js. Being extensively employed in cryptography, hash functions are paramount for generating a fixed-size text string from any given data input. This is beneficial for the secure storage of passwords, digital data comparisons, data retrieval, and building hash tables, to name a few applications.

How do you use hash.js?

In order to utilize the functionalities provided by hash.js, begin by installing the package through npm (Node Package Manager) using the command: npm install hash.js. Once installed, it can easily be included and used in a JavaScript file like so:

var hash = require('hash.js');
hash.sha256().update('abc').digest('hex');

The above code will generate a SHA-256 hash of the string 'abc' and output it in hexadecimal format.

If you wish to use a specific hashing function from the library, you can selectively import and use it as follows:

var sha512 = require('hash.js/lib/hash/sha/512');
sha512().update('abc').digest('hex');

This snippet generates a SHA-512 hash of the string 'abc' and ouputs it in hexadecimal format.

Where are the hash.js docs?

The documentation for hash.js can be found on the GitHub repository. As of now, the README document present there serves as the primary source of documentation and usage instructions for this package.