Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including sha-hasher with all npm packages installed. Try it out:

var shaHasher = require("sha-hasher")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

sha-hasher v1.0.5

Generate a SHA256 Hash

License: UCOP v3

Current features:

  • generating a SHA256 hash
  • generating a SHA512 hash

Setup for the project

Download the module with the command: npm install --save sha-hasher

Import the module with:

const Hasher = require('sha-hasher');

License: UCOP v3 #Important Notice This package is a extension package for the lsj npm package

SHA256-hash generator usage

var text = "The text you want to use";

var hash = Hasher.SHA256(text);

SHA512-hash generator usage

var text = "The text you want to use";

var hash = Hasher.SHA512(text);
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free