Skip to content

Eclairemoy/decrypt-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Decrypt Function

Evervault makes it easy to encrypt data at source, process it in a Function — a secure, serverless function — and never store it unencrypted.

This is a simple Evervault Function that will allow you to decrypt data.

Getting started with Evervault

Evervault consists of two parts, encrypting your data at source, using either our Node SDK, or Browser and React SDKs and then sending that encrypted data to a Function to be processed securely.

The steps

  1. Encrypt your data at source, using one of our SDKs.
  2. Process the encrypted data in a Function

Encrypting at source

// This example uses the Evervault Node SDK.
const Evervault = require('@evervault/sdk');

// Initialize the client with your App's API key
const evervault = new Evervault('<YOUR-API-KEY>');

// Encrypt your data
const encrypted = await evervault.encrypt({ name: 'Claude Shannon' });

Process your encrypted data in a Function

You should encrypt this payload using either our Node SDK or Browser SDK, then run it in the Hello Function:

// Process the encrypted data in a Function
const result = await evervault.run('<YOUR_FUNCTION_NAME>', encrypted);

Understanding the Function

Since functions decrypts data automatically, it's just a few lines of code:

exports.handler = async (data, context) => {
    return data
};

Or check it out in index.js.


If you want to know more about Evervault, check out our documentation.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors