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