emn178 / js-sha3

A simple SHA-3 / Keccak hash function for JavaScript supports UTF-8 encoding.
MIT License
350 stars 85 forks source link

Examples are great, please add a little tip for node users #17

Closed truedat101 closed 1 year ago

truedat101 commented 6 years ago

To get going on node.js, something like:

var jssha3 = require('js-sha3');

works after installing js-sha3 via NPM. Thank you for this implementation. This is an impressive piece of work.

rsodre commented 2 years ago

This works for me...

import { keccak_256 } from 'js-sha3';
// or...
var keccak_256 = require('js-sha3').keccak_256;

var result = keccak_256.update('Hello World!').hex();
emn178 commented 1 year ago

I added title in README https://github.com/emn178/js-sha3#nodejs