1.0.8 • Published 2 years ago

@novo-x/aws-kms v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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
)

Dependencies

aws-sdk

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago