Socket
Book a DemoInstallSign in
Socket

@aws-crypto/caching-materials-manager-node

Package Overview
Dependencies
Maintainers
8
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-crypto/caching-materials-manager-node

4.2.1
latest
npmnpm
Version published
Weekly downloads
272K
0.69%
Maintainers
8
Weekly downloads
 
Created

What is @aws-crypto/caching-materials-manager-node?

@aws-crypto/caching-materials-manager-node is a package provided by AWS that allows for the caching of cryptographic materials in Node.js applications. This can help improve performance by reducing the number of calls to the AWS Key Management Service (KMS) for cryptographic operations.

What are @aws-crypto/caching-materials-manager-node's main functionalities?

Caching Cryptographic Materials

This feature allows you to create a caching materials manager that caches cryptographic materials for a specified duration, number of bytes, or number of messages. This reduces the number of calls to AWS KMS, improving performance.

const { NodeCachingMaterialsManager } = require('@aws-crypto/caching-materials-manager-node');
const { KmsKeyringNode } = require('@aws-crypto/kms-keyring-node');

const keyring = new KmsKeyringNode({
  generatorKeyId: 'arn:aws:kms:us-west-2:123456789012:key/abcd1234-abcd-1234-abcd-1234abcd1234',
  keyIds: ['arn:aws:kms:us-west-2:123456789012:key/abcd1234-abcd-1234-abcd-1234abcd1234']
});

const cachingCMM = new NodeCachingMaterialsManager({
  backingMaterials: keyring,
  maxAge: 300000, // 5 minutes
  maxBytesEncrypted: 1000000, // 1MB
  maxMessagesEncrypted: 1000
});

console.log('Caching Materials Manager created:', cachingCMM);

Other packages similar to @aws-crypto/caching-materials-manager-node

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.