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
});