
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
@accumulators/hashers
Advanced tools
@accmulators/hashers library implements the following hashing algorithms:
import { KeccakHasher } from "@accmulators/hashers";
const hasher = new KeccakHasher();
const hash = hasher.hash([`0x1234`, `0x5678`]);
console.log(hash);
Every hasher supports the following functions:
constructor(options: HasherOptions) - creates a new hasher instanceImporant: Don't use constructor for PoseidonHasher, use async create() function instead.
HasherOptions has the following interface:
interface HasherOptions {
blockSizeBits: number;
shouldPad?: boolean;
}
blockSizeBits (default is 256)shouldPad (defaults is false) - if true every outputted hash will have the same length and zeros will be padded at the beginning of the stringhashSingle(data: string)Hashes a single string. Returns a hexadecimal number as a string (for example 0x1234567890abcdef).
hash(data: string[])Hashes array of string and returns a hexadecimal number as a string.
4.2.3 (2023-10-06)
Note: Version bump only for package accumulators
FAQs
A TypeScript implementation of multiple hashing functions
The npm package @accumulators/hashers receives a total of 27 weekly downloads. As such, @accumulators/hashers popularity was classified as not popular.
We found that @accumulators/hashers demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.