Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
@coboxcoop/crypto-encoder
Advanced tools
A simple crypto encoder compatible with hypercore
A simple hypercore-compatible crypto encoder.
const hypercore = require('hypercore')
const Encoder = require('.')
const encryptionKey = Encoder.encryptionKey()
const nonce = Encoder.generateNonce()
const valueEncoding = Encoder(encrytionKey, { nonce, valueEncoding: 'utf-8' })
const feed = hypercore(storage, { valueEncoding })
const Encoder = require('.')
const encryptionKey = Encoder.encryptionKey()
Generate a random 32 byte key to be used to encrypt.
const nonce = Encoder.generateNonce()
Generate a random nonce used to encrypt.
const valueEncoding = Encoder(encryptionKey, opts)
Returns a message encoder used for encrypting messages in hypercore.
encryptionKey
must be a buffer of length Encoder.KEYBYTES
.opts
is an optional object which may contain:
ops.nonce
a buffer containing a 24 byte nonceopts.valueEncoder
, an additional encoder to be used before encryption. May be one of:
{ encode: [function] decode: [function] }
FAQs
A simple crypto encoder compatible with hypercore
We found that @coboxcoop/crypto-encoder 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.