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