keycrypt
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Keycrypt

NPM version NPM downloads Build status Test coverage

Data encryption and decryption for rotating credentials and algorithms.

(Inspired by keygrip and this PR).

Installation

npm install keycrypt --save

Usage

import { Keycrypt } from 'keycrypt'
 
const secrets = [Buffer.from('secret', 'utf8')]
const keycrypt = new Keycrypt(secrets)
 
const raw = Buffer.from('some data', 'utf8')
const encrypted = keycrypt.encode(raw)
const decrypted = keycrypt.decode(encrypted)
 
assert.equal(decrypted, raw)

TypeScript

This project is using TypeScript and publishes the definitions to NPM.

License

Apache 2.0

Dependencies (0)

    Dev Dependencies (7)

    Package Sidebar

    Install

    npm i keycrypt

    Weekly Downloads

    3

    Version

    1.0.2

    License

    Apache-2.0

    Unpacked Size

    20.9 kB

    Total Files

    9

    Last publish

    Collaborators

    • blakeembrey