
Product
Introducing GitHub Actions Scanning Support
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
@credenceanalytics/aws-kms-adaptor
Advanced tools
npm install @credenceanalytics/aws-kms-adaptor
@aws-crypto/client-node
.Import and initialize the AWS KMS Adaptor with your AWS configuration:
`const AwskmsInstance = require('aws-kms-adaptor');
const kmsAdaptor = new AwskmsInstance(<awsconfig>);`
const plaintext = 'Sensitive information';
kmsAdaptor.encryptDataAndReturn(<plaintext>).then((encryptedData) => {
console.log('Encrypted Data:', encryptedData);
}).catch((error) => {
console.error('Encryption Error:', error.message);
});
const encryptedData = '<Base64-encoded encrypted data>';
kmsAdaptor.decryptData(encryptedData).then((decryptedData) => {
console.log('Decrypted Data:', decryptedData);
}).catch((error) => {
console.error('Decryption Error:', error.message);
});
kms_key_Arn
parameter specifies the KMS key used for encryption and decryption.encryptionContext
field inside the class.Feel free to modify this template further to fit your project's specific needs.
FAQs
This package contains the code for aws kms
We found that @credenceanalytics/aws-kms-adaptor 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.
Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.