Socket
Socket
Sign inDemoInstall

multihashes-sync

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multihashes-sync - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

9

dist/sha2.js
import { createHash } from "crypto";
import { SyncHasher } from "./sync-hasher.js";
export const sha256 = new SyncHasher("sha2-256", 0x12, (bytes) => {
return createHash("sha256").update(bytes).digest();
import { coerce } from "multiformats/bytes";
export const sha256 = new SyncHasher("sha2-256", 0x12, (input) => {
return coerce(createHash("sha256").update(input).digest());
});
export const sha512 = new SyncHasher("sha2-512", 0x13, (bytes) => {
return createHash("sha512").update(bytes).digest();
export const sha512 = new SyncHasher("sha2-512", 0x13, (input) => {
return coerce(createHash("sha512").update(input).digest());
});
{
"name": "multihashes-sync",
"version": "1.1.0",
"version": "1.1.1",
"description": "Synchronous SHA256, SHA512 multihashes",

@@ -5,0 +5,0 @@ "keywords": [

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