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.3
  • 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.

Table of Contents

  • Getting Started
  • API Reference

Getting Started

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 data and run a cage
const result = await evervaultClient.encryptAndRun(<CAGE-NAME>, { hello: 'World!' });

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, options?: Object);
ParameterTypeDescription
dataObject or StringData to be encrypted
optionsObjectStandard evervault encryption options
evervaultClient.run

Run lets you invoke your evervault cages with a given payload.

async evervaultClient.run(cageName: String, payload: Object);
ParameterTypeDescription
cageNameStringName of the cage to be run
dataObjectPayload for the cage
evervaultClient.encryptAndRun

Encrypt your data and use it as the payload to invoke the cage.

async evervaultClient.encryptAndRun(cageName: String, data: Object, options: Object);
ParameterTypeDescription
cageNameStringName of the cage to be run
dataObjectData to be encrypted
optionsObjectStandard evervault encryption options
Encryption Options

Options to control how your data is encrypted.

OptionDefaultDescription
fieldsToEncryptAll keysIf the data is an object, fieldsToEncrypt specifies the keys to encrypt.

Keywords

FAQs

Package last updated on 30 Jul 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