New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-crypto/cache-material

Package Overview
Dependencies
Maintainers
8
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/cache-material

4.2.0
latest
npm
Version published
Maintainers
8
Created

What is @aws-crypto/cache-material?

@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.

What are @aws-crypto/cache-material's main functionalities?

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
});

Other packages similar to @aws-crypto/cache-material

FAQs

Package last updated on 27 Feb 2025

Did you know?

Socket

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.

Install

Related posts