data-to-sha256
v0.0.1
Published
Calculates a SHA-256 for given data
Downloads
144
Maintainers
Readme
data-to-sha256
Calculates a SHA-256 of a given buffer/string
Install
Using yarn:
yarn add data-to-sha256
or using npm:
npm install data-to-sha256
Usage
const fs = require('fs')
const dataToSHA256 = require('data-to-sha256')
const buffer = fs.readFileSync('/path/to/file')
const hash = dataToSHA256(buffer)