simple-hash-browser

1.0.0 • Public • Published

Easy Hash

A barebones function for getting a SHA356 hash of a string using the browser's native crypto module.

Usage

import sha from "simple-hash-browser";
 
sha("String To Hash Beyond Recognition");
 // returns a Promise
 
sha("This other string").then(hash => {console.log(hash)});
// "0d5a0597790745345842b61356016e3b24e83a7e6b0266618180c3a864bf25f1"

Readme

Keywords

none

Package Sidebar

Install

npm i simple-hash-browser

Weekly Downloads

2

Version

1.0.0

License

MIT

Unpacked Size

1.31 kB

Total Files

3

Last publish

Collaborators

  • danknotdank