nano-sha256

0.1.2 • Public • Published

nano-sha256

Use the native implementation of sha256 on both browser and Node.js. 588 bytes (gzipped).

const nanoSha256 = require(".");

// ByteArray
nanoSha256([65,66,67]).then(console.log);

// UTF-8 String
nanoSha256("ABC").then(console.log);

// Uint8Array
nanoSha256(new Uint8Array([65,66,67])).then(console.log);

// Buffer
nanoSha256(new Buffer([65,66,67])).then(console.log);

Readme

Keywords

none

Package Sidebar

Install

npm i nano-sha256

Weekly Downloads

43

Version

0.1.2

License

MIT

Last publish

Collaborators

  • maiavictor