keyarmory

0.0.4 • Public • Published

Key Armory client library for node.js

This is the official node.js client library for the Key Armory Encryption Key Orchestration Service. You'll first need an account by going to https://keyarmory.com. Follow the instructions to set up a project and key pool and then place the API Key you receive in the initialization script below.

Installation

npm install keyarmory

Initialization

var keyarmory = require('keyarmory')({
    api_key: 'your_api_key_here'
});

Encryption

keyarmory
    .encrypt(your_data)
    .then(ct_string => {
        // save ct_string in db, or wherever
    });

Decryption

keyarmory
    .decrypt(ct_string) // <-- from db, or wherever
    .then(your_data => {
        // do something
    });

Package Sidebar

Install

npm i keyarmory

Weekly Downloads

5

Version

0.0.4

License

ISC

Last publish

Collaborators

  • ebrian