kms-datakeys
v1.3.3
Published
encrypt / decrypt customer secrets using kms datakeys (with promises and typescript definitions)
Downloads
2
Maintainers
Keywords
Readme
kms-datakeys
wrapper for using kms data keys (es6 and typescript friendly)
installation
npm install kms-datakeys --save
usage
import { encryptWithKms, decryptWithKms } from 'kms-datakeys';
const encrypted = await encryptWithKms(kms, 'SOME KEY ID', input);
const result = await decryptWithKms<Object>(kms, encrypted.encryptedKey, encrypted.encryptedObj);