You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

sha1-hex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

sha1-hex

Create a SHA1 hash with hex encoding


Version published
Weekly downloads
1.1K
decreased by-12.65%
Maintainers
1
Created
Weekly downloads
 

Readme

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc