Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
sync-multihash-sha2
Advanced tools
Library provides alternative implementation of sha256 and sha512 hashing algorithms for those rare cases where implementation provided by multiformats may be prohibitively slow.
ℹ️ In vast majority of use cases multiformats is better choice. In rare instances where multiformats does not meet your requirements you could use this library, but please make sure to consider the offered tradeoffs.
tl;dr: This implementation has sync API and is faster in browsers, but more dependencies implies more bytes over the wire and greater risk of supply chain attacks.
Library provides SyncMultihashHasher
implementation which provides sync API in browser and node environments. This is accomplished by leveraging node:crypto
in node and in @noble/hashes
in browsers.
Since this library does not leverage web crypto APIs there is more code to be send over the wire. More dependencies also increase risk of supply chain attacks.
Web crypto APIs deliberately provide async APIs, which this library provides sync API. Furthermore, native implementation appears significantly slower, possibly because browsers rate-limit API calls.
Difference in choices may prove problematic in longer.
FAQs
Sync sha-256 & sha-512 multihash implementations
We found that sync-multihash-sha2 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.