Security News
How Threat Actors are Abusing GitHub’s File Upload Feature to Host Malware
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
buffer-noise
Advanced tools
Readme
Expand a buffer to a specified length. If the buffer is smaller than the specified length, the remaining space is filled with random bytes. A 32-bit Unsigned Big-Endian Integer containing the length of the data is always prepended to the buffer.
This module can be used for obfuscating an encrypted file's size for plausible deniability.
npm install buffer-noise
const size = 25
const { expand, shrink } = require('buffer-noise')(size)
const data = Buffer.from('Hello World!')
const newData = expand(data)
console.log(data, newData)
// Prints:
// <Buffer 48 65 6c 6c 6f 20 57 6f 72 6c 64 21>
// <Buffer 00 00 00 0c 48 65 6c 6c 6f 20 57 6f 72 6c 64 21 91 5c d3 2f>
assert(newData.length === size)
assert(shrink(newData).equals(data))
MIT
FAQs
[![npm](https://img.shields.io/npm/v/buffer-noise.svg)](https://npmjs.com/package/buffer-noise) [![GitHub Actions Status](https://img.shields.io/github/workflow/status/ExodusMovement/buffer-noise/CI/master)](https://github.com/ExodusMovement/buffer-noise/
The npm package buffer-noise receives a total of 894 weekly downloads. As such, buffer-noise popularity was classified as not popular.
We found that buffer-noise 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.
Security News
GitHub is susceptible to a CDN flaw that allows attackers to host malware on any public repository.
Security News
At Node Congress, Socket CEO Feross Aboukhadijeh uncovers the darker aspects of open source, where applications that rely heavily on third-party dependencies can be exploited in supply chain attacks.
Research
Security News
The Socket Research team found this npm package includes code for collecting sensitive developer information, including your operating system username, Git username, and Git email.