@novo-x/aws-kms
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

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

/@novo-x/aws-kms/

    Package Sidebar

    Install

    npm i @novo-x/aws-kms

    Weekly Downloads

    0

    Version

    1.0.8

    License

    ISC

    Unpacked Size

    75.7 kB

    Total Files

    6

    Last publish

    Collaborators

    • lautarobruno
    • agustin-novolabs
    • novo-tincho
    • nicolas.novolabs
    • mati-novolabs
    • alejitowow
    • nahuelprieto