
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
github.com/spalt08/cryptography
High-performance synchronous SHA-256 implementation for JavaScript. Optimized for browsers.
Package is available through npm
and yarn
npm install @cryptography/sha256
yarn add @cryptography/sha256
This package is optimized for small byte inputs (<10kb).
Also, it is highly recommended to run CPU-intensive tasks in a Web Worker.
import sha256 from '@cryptography/sha256'
const hash = sha256('Hello World!')
const bytes = sha256('Hello World!', 'array')
For hashing large files or other data chuncks use stream()
to create a hashing stream.
sha256.stream().update('Hello World!').digest();
Faster than forge, sjcl and WebCrypto API in sequence mode.
Contributions are welcome! Contribution guidelines will be published soon.
FAQs
Unknown package
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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.