In this blog post, I demonstrate how you can use our invisible encryption proxy, Inbound Relay, to automatically intercept and encrypt any sensitive f

How to Build an App with Field Level Encryption

submited by
Style Pass
2022-09-22 16:00:06

In this blog post, I demonstrate how you can use our invisible encryption proxy, Inbound Relay, to automatically intercept and encrypt any sensitive fields that would otherwise sit unencrypted on your infrastructure. Inbound Relay takes requests from your client, routes them through the proxy (which encrypts your request at a field level) and forwards them to your infrastructure!

To build a simple CRUD application with encrypted fields, we’ll use Node.js with an HTML data collection form that will write to a MongoDB Atlas Database. From there, we’ll use Inbound Relay to intercept the request, encrypt some fields and then pass the encrypted fields through to your server. Your server will then store the encrypted values in MongoDB.

We’ve based most of the code for this demo on the existing Evervault tutorial, where we collect details, encrypt them using Inbound Relay and use a Cage to send a text using Twilio.

Create a package.json file using npm init. This file provides npm with the details needed to identify the project and handle dependencies. You’ll be asked to input details when setting it up, as I’m running this on my local machine, after hitting enter for each request, I ended up with:

Leave a Comment