New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tiny-sha1

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-sha1

Tiny SHA-1 hasher for Node and browsers

latest
Source
npmnpm
Version
0.2.1
Version published
Maintainers
1
Created
Source

tiny-sha1

NPM Build Status Coverage Status Dependency Status devDependency Status

A tiny, synchronous implementation of the SHA-1 hash function.

Only works on Uint8Array for performance and portability reasons.

API

export default function sha1(bytes: Uint8Array): string;

Usage

import sha1 from 'tiny-sha1';

const emptyBuffer = new Uint8Array(0);
const hash = sha1(emptyBuffer);

console.assert(hash === 'da39a3ee5e6b4b0d3255bfef95601890afd80709');

Keywords

sha1

FAQs

Package last updated on 09 Aug 2016

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