Security News
NIST Misses 2024 Deadline to Clear NVD Backlog
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
@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
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
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.