
Security News
curl Shuts Down Bug Bounty Program After Flood of AI Slop Reports
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.
blind-encryption-sodium
Advanced tools
Implemention of encryption encoding for Autobase blind encryption using sodium easy box
Implemention of encryption encoding for Autobase blind encryption using sodium easy box
const BlindEncryptionSodium = require('blind-encryption-sodium')
const b4a = require('b4a')
const key = b4a.alloc(32) // 32-byte key
const encryption = new BlindEncryptionSodium(key)
const encrypted = await encryption.encrypt(plaintext)
// { value: <Buffer>, type: 1 }
const { value, rotated } = await encryption.decrypt(encrypted)
// if rotated, it was decrypted with a newer type, and you should encrypt and store
Multiple values can be passed in. This enables you to "rotate" entropies.
const base = new Autobase(store, {
apply,
open,
encryptionKey,
blindEncryption: new BlindEncryptionSodium(newKey, oldKey)
})
Internally, Autobase uses this with encryption-encoding
const { encrypt, decrypt } = require('encryption-encoding')
const BlindEncryptionSodium = require('blind-encryption-sodium')
const encryptedAndEncoded = await encrypt(encryptionKey, bes.encrypt.bind(bes))
const decrypted = await decrypt(encryptedAndEncoded, bes.decrypt.bind(bes))
Apache-2.0
FAQs
Implemention of encryption encoding for Autobase blind encryption using sodium easy box
We found that blind-encryption-sodium demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A surge of AI-generated vulnerability reports has pushed open source maintainers to rethink bug bounties and tighten security disclosure processes.

Product
Scan results now load faster and remain consistent over time, with stable URLs and on-demand rescans for fresh security data.

Product
Socket's new Alert Details page is designed to surface more context, with a clearer layout, reachability dependency chains, and structured review.