sha1-digest

0.0.1 • Public • Published

sha1-digest

A simple, cross-platform streaming sha1 digest.

Usage is very simple and should work the same in both node.js and browser versions.

var sha1sum = require('sha1-digest')();
 
// Update accepts either binary objects or strings.
// The strings will be encoded as UTF8 bytes.
sha1sum.update("Hello ");
sha1sum.update("World\n");
 
var hex = sha1sum.digest();

Readme

Keywords

none

Package Sidebar

Install

npm i sha1-digest

Weekly Downloads

0

Version

0.0.1

License

MIT

Last publish

Collaborators

  • creationix