
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@aws-crypto/kdf-ctr-mode-node
Advanced tools
This module exports a Key Derivation Function in Counter Mode with a Pseudo Random function with HMAC SHA 256 for Node.js.
This module is used in the the AWS Encryption SDK for JavaScript to provide key derivation for specific algorithm suites.
Specification: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-108r1.pdf
npm install @aws-crypto/kdf-ctr-mode-node
const digestAlgorithm = 'sha256'
const initialKeyMaterial = gottenFromSomewhereSecure()
const nonce = freshRandomData()
const purpose = Buffer.from('What this derived key is for.', 'utf-8')
const expectedLength = 32
const KDF = require('@aws-crypto/kdf-ctr-mode-node')
const derivedKey = KDF.kdfCounterMode({
digestAlgorithm,
ikm: initialKeyMaterial,
nonce,
purpose,
expectedLength,
})
npm test
This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.
FAQs
nodejs kdf ctr mode crypto primitive
The npm package @aws-crypto/kdf-ctr-mode-node receives a total of 98,401 weekly downloads. As such, @aws-crypto/kdf-ctr-mode-node popularity was classified as popular.
We found that @aws-crypto/kdf-ctr-mode-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.