
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.
@hyperdivision/password-encrypted-container
Advanced tools
password-encrypted-containerPassword encrypted container
var PasswordEncryptedOverlay = require('password-encrypted-container')
var passwordBuffer = // ... (preferably sodium SecureBuffer)
// Note that the passwordBuffer is "consumed" by the constructor, ie. it will
// be cleared when a key has been derived from the password. If you need to keep
// the password, you should copy it and pass in the copy
PasswordEncryptedOverlay.create(
passwordBuffer,
PasswordEncryptedOverlay.MODERATE,
onready
)
function onready (err, container) {
PasswordEncryptedOverlay.memzero(passwordBuffer)
if (err) throw err
const ciphertext = container.encrypt(Buffer.from('My encrypted file'))
const plaintext = container.decrypt(Buffer.from('My encrypted file'))
storage.destroy()
storage = null
}
var PasswordEncryptedOverlay = require('password-encrypted-container')
var passwordBuffer = // ... (preferably sodium SecureBuffer)
var containerBuf = // Read from filesystem
PasswordEncryptedOverlay.open(passwordBuffer, containerBuf, function(err, container) {
PasswordEncryptedOverlay.memzero(passwordBuffer)
if (err) throw err
const plaintext = storage.decrypt(containerBuf)
storage.destroy()
storage = null
})
PasswordEncryptedOverlay.create(password, {memlimit, opslimit}, cb(err, container))Create a new container with the given hardness settings. Password must be a
Buffer, optimally a SecureBuffer. password should be zero'ed out after it
has been derived into a key. Hardness settings determine the resources spent
turning password into a encryption key. See the constants below for some
predefined settings. memlimit is the number of bytes of memory used, rounded
down to the nearest kilobyte. opslimit is the number of passes over the
memory. Both must be Numbers and fit in a 32-bit unsigned integer.
PasswordEncryptedOverlay.open(password, buf, cb(err, container))Open a existing container with encrypted with password. Password must be a
Buffer, optimally a SecureBuffer. password should be zero'ed out after it
has been derived into a key. buf must be an exisiting container
const plaintext = container.decrypt(buf)Read and decrypt into a SecureBuffer from buf.
const ciphertext = container.encrypt(buf)Encrypt a Buffer. This updates the settings and rotates the nonce.
container.compare(key)Compare the key contained in container with another key. Note this does not
compare passphrases, but keys.
container.destroy()Destroy the internal state, including zero'ing all internal data. Makes all other methods unusable hereafter
PasswordEncryptedOverlay.deriveKey(password, {memlimit, opslimit, nonce?}, cb(err, key, nonce))Derive a key manually with an optional nonce. Useful if you want to compare passwords without storing the password itself.
const equal = PasswordEncryptedOverlay.compareKeys(k1, k2)Compare two keys safely, in constant-time.
const equal = PasswordEncryptedOverlay.memzero(buf)Clear a buffer buf.
PasswordEncryptedOverlay.INTERACTIVE
PasswordEncryptedOverlay.MEMLIMIT_INTERACTIVEPasswordEncryptedOverlay.OPSLIMIT_INTERACTIVEPasswordEncryptedOverlay.MODERATE
PasswordEncryptedOverlay.MEMLIMIT_MODERATEPasswordEncryptedOverlay.OPSLIMIT_MODERATEPasswordEncryptedOverlay.SENSITIVE
PasswordEncryptedOverlay.MEMLIMIT_SENSITIVEPasswordEncryptedOverlay.OPSLIMIT_SENSITIVEnpm install password-encrypted-container
FAQs
Password encrypted container
The npm package @hyperdivision/password-encrypted-container receives a total of 0 weekly downloads. As such, @hyperdivision/password-encrypted-container popularity was classified as not popular.
We found that @hyperdivision/password-encrypted-container demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.