Functions
When you send encrypted data to your server, there are probably cases where you’ll want decrypt the data to perform validation checks, run calculations, or do some other processing. Evervault Functions lets you process data encrypted by Evervault using secure serverless functions that are hosted on Evervault’s infrastructure and written in Node.js or Python.
Any encrypted data that is passed to a Function is decrypted by the Function’s runtime. This allows you to process and run logic on that data as you normally would — without handling it in plaintext on your infrastructure.
When you installed the integration, we deployed an Evervault Function for you called get-distance-to-new-york
. The Function takes latitude and longitude coordinates as a payload and returns the distance in kilometres from that location to New York. If we pass an encrypted lat
and long
, the Function’s runtime will automatically decrypt the payload and run the calculation on the plaintext values.