Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@evervault/sdk

Package Overview
Dependencies
Maintainers
7
Versions
105
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@evervault/sdk

Node.js SDK for working with evervault cages

  • 1.1.8
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4.9K
decreased by-10.88%
Maintainers
7
Weekly downloads
 
Created
Source

Evervault Node SDK

The Node.js SDK for working with Evervault Cages.

Prerequisites

To get started with the Evervault Node.js SDK, you will need to have created a team on the Evervault Dashboard.

We are currently in invite-only early access. You can apply for early access here.

Installation

npm install --save @evervault/sdk

yarn add @evervault/sdk

Setup

const Evervault = require('@evervault/sdk');

// Initialize the client with your team's api key
const evervaultClient = new Evervault('<API-KEY>');

// Encrypt your sensitive data
const encrypted = await evervaultClient.encrypt({ ssn: '012-34-5678' });

// Process the encrypted data in a Cage
const result = await evervaultClient.run('<CAGE_NAME>', encrypted);

API Reference

evervaultClient.encrypt

Encrypt lets you encrypt data for use in any of your Evervault Cages. You can use it to store encrypted data to be used in a Cage at another time.

async evervaultClient.encrypt(data: Object | String);
ParameterTypeDescription
dataObject or StringData to be encrypted

evervaultClient.run

Run lets you invoke your Evervault Cages with a given payload.

async evervaultClient.run(cageName: String, payload: Object, options?: Object);
ParameterTypeDescription
cageNameStringName of the Cage to be run
dataObjectPayload for the Cage
optionsObjectOptions for the Cage run
Cage Run Options

Options to control how your Cage is run

OptionTypeDefaultDescription
asyncBooleanfalseRun your Cage in async mode. Async Cage runs will be queued for processing.
versionNumberundefinedSpecify the version of your Cage to run. By default, the latest version will be run.

Keywords

FAQs

Package last updated on 10 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc