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.
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.
- Encrypt your data at source, using one of our SDKs.
- Process the encrypted data in a Function
// 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' });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);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.