🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

sha1-hex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sha1-hex

Create a SHA1 hash with hex encoding

1.0.0
latest
Source
npm
Version published
Weekly downloads
793
-2.94%
Maintainers
1
Weekly downloads
 
Created
Source

sha1-hex Build Status

Create a SHA1 hash with hex encoding

Install

$ npm install --save sha1-hex

Usage

var fs = require('fs');
var sha1Hex = require('sha1-hex');
var buffer = fs.readFileSync('unicorn.png');

sha1Hex(buffer);
//=> '84de6753b298abd027fcd1d790eade2413eafb5a'

API

sha1Hex(input)

input

Required
Type: buffer, string

Prefer buffers as they're faster to hash, but strings can be useful for small things.

License

MIT

Keywords

hash

FAQs

Package last updated on 26 May 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts