Socket
Book a DemoInstallSign in
Socket

@aws-crypto/cache-material

Package Overview
Dependencies
Maintainers
8
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/cache-material

4.2.1
latest
npmnpm
Version published
Weekly downloads
276K
0.25%
Maintainers
8
Weekly downloads
 
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 10 Apr 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.