Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@aws-crypto/cache-material
Advanced tools
The AWS Encryption SDK for JavaScript is a client-side encryption library designed to make it easy for everyone to encrypt and decrypt data using industry standards and best practices. It uses a data format compatible with the AWS Encryption SDKs in other
@aws-crypto/cache-material is a package provided by AWS that helps manage cryptographic materials in a cache. This is particularly useful for applications that need to perform cryptographic operations efficiently by reusing cryptographic materials.
Caching Cryptographic Materials
This feature allows you to cache cryptographic materials using the NodeCachingMaterialsManager. The cache is configured with a maximum age, maximum bytes encrypted, and maximum messages encrypted to ensure efficient and secure reuse of cryptographic materials.
const { NodeCachingMaterialsManager } = require('@aws-crypto/cache-material');
const { KeyringNode } = require('@aws-crypto/client-node');
const keyring = new KeyringNode({
generatorKeyId: 'arn:aws:kms:us-west-2:123456789012:key/abcd-1234-efgh-5678',
keyIds: ['arn:aws:kms:us-west-2:123456789012:key/abcd-1234-efgh-5678']
});
const cache = new NodeCachingMaterialsManager({
backingMaterials: keyring,
maxAge: 300000, // 5 minutes
maxBytesEncrypted: 1000000, // 1MB
maxMessagesEncrypted: 1000
});
node-cache is a simple and fast Node.js internal caching module. While it is not specifically designed for cryptographic materials, it provides a general-purpose caching mechanism that can be used to store and retrieve any kind of data, including cryptographic materials.
lru-cache is a Node.js module that implements a Least Recently Used (LRU) cache. It is a general-purpose caching library that can be used to manage cryptographic materials by evicting the least recently used items when the cache reaches its limit.
memory-cache is a simple in-memory cache for Node.js. It provides basic caching functionalities and can be used to store cryptographic materials temporarily. However, it lacks the specific features and optimizations for cryptographic materials that @aws-crypto/cache-material offers.
The AWS Encryption SDK for JavaScript is a client-side encryption library designed to make it easy for everyone to encrypt and decrypt data using industry standards and best practices. It uses a data format compatible with the AWS Encryption SDKs in other languages. For more information on the AWS Encryption SDKs in all languages, see the Developer Guide.
This package is not intended for direct use by clients. To get started with the AWS Encryption SDK for JavaScript, follow the instructions in the README.
This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.
FAQs
The AWS Encryption SDK for JavaScript is a client-side encryption library designed to make it easy for everyone to encrypt and decrypt data using industry standards and best practices. It uses a data format compatible with the AWS Encryption SDKs in other
The npm package @aws-crypto/cache-material receives a total of 169,073 weekly downloads. As such, @aws-crypto/cache-material popularity was classified as popular.
We found that @aws-crypto/cache-material demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.