@novo-x/aws-kms
v1.0.8
Published
AWS KMS core
Downloads
5
Readme
AWS KMS Service
Available methods
- encryptData: encrypts data
- decryptData: decrypts data
- updateAwsConfig: updates the aws config
Usage examples
yarn add @novo-x/aws-kms
import {KMS} from "@novo-x/aws-kms"
const MyService = new KMS(
'123456789', // apiKey
{
region: 'eu-west-3',
} // optional config
);
MyService.updateAwsConfig({
// ... AWS config
})
const encripted = await MyService.encryptData(
'some data to encrypt' // keyText
)
const decripted = await MyService.decryptData(
'KAJSHDJKAHD23kjeh1kjldh' // cipherText
)