New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@napi-rs/blake-hash

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@napi-rs/blake-hash

![https://github.com/Brooooooklyn/blake-hash/actions](https://github.com/Brooooooklyn/blake-hash/workflows/CI/badge.svg) ![](https://img.shields.io/npm/dm/@napi-rs/blake-hash.svg?sanitize=true) [![Install size](https://packagephobia.com/badge?p=blake-hash

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
195
decreased by-71.62%
Maintainers
1
Weekly downloads
 
Created
Source

@napi-rs/blake-hash

https://github.com/Brooooooklyn/blake-hash/actions Install size

Performance

Compare with blake3 and blake2.

Running "digest big file blake2b" suite...
Progress: 100%

  blake2b-napi:
    1 560 ops/s, ±0.35%   | fastest

  blake2b-c++:
    1 101 ops/s, ±0.35%   | slowest, 29.42% slower

Finished 2 cases!
  Fastest: blake2b-napi
  Slowest: blake2b-c++
Running "digest big file blake2s" suite...
Progress: 100%

  blake2s-napi:
    934 ops/s, ±0.67%   | fastest

  blake2s-c++:
    846 ops/s, ±0.46%   | slowest, 9.42% slower

Finished 2 cases!
  Fastest: blake2s-napi
  Slowest: blake2s-c++
Running "digest big file blake3" suite...
Progress: 100%

  blake3-napi:
    4 514 ops/s, ±0.99%   | fastest

  blake3-neon:
    669 ops/s, ±0.44%     | slowest, 85.18% slower

Finished 2 cases!
  Fastest: blake3-napi
  Slowest: blake3-neon

Blake2

Support blake2b blake2bp blake2s blake2sp algorithm.

Unkeyed Hash

import { Blake2BHasher } from '@napi-rs/blake-hash'

const hasher = new Blake2BHasher()
hasher.update('content to be hash')
hasher.digest('hex') // could also be `base64` or `url-safe-base64`

Keyed Hash

import { Blake2BHasher, Blake2BParam } from '@napi-rs/blake-hash'

const hashParams = new Blake2BParam()
hashParams.personal('someone@email.com')
const hash = Blake2BHasher.withParams(hashParams)

hash.update('your secret')
hash.digest('hex')

FAQs

Package last updated on 08 Nov 2021

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc