
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
chacha-stream
Advanced tools
This module provides encryption and decryption streams for the sodium chacha20 implementation. It can be used to encrypt channels using a key already known to both sides.
It manages communicating the stream nonce to the remote side, which is transmitted in plaintext. This is safe information to leak (the nonce is used to detect replay attacks).
const chacha = require('chacha-stream')
const through = require('through2')
const crypto = require('crypto')
function printer (prefix) {
return through(function (chunk, enc, next) {
console.log(prefix, chunk.toString())
next(null, chunk)
})
}
let key = crypto.randomBytes(32)
let encode0 = chacha.encoder(key)
let decode0 = chacha.decoder(key)
encode0.write('hello world')
encode0.pipe(printer('encrypted')).pipe(decode0).pipe(printer('decrypted'))
outputs
encrypted }�?�lx
encrypted z>��Un��4�
decrypted hello world
var chacha = require('chacha-stream')
Creates a Transform stream that accepts plaintexts written to it, and outputs encrypted ciphertext.
key is a 32-byte Buffer.
Creates a Transform stream that accepts ciphertext written to it, and outputs decrypted plaintext.
key is a 32-byte Buffer.
With npm installed, run
$ npm install chacha-stream
ISC
FAQs
libsodium chacha20 symmetric encryption stream
We found that chacha-stream 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.