Skip to content

v1.2.0

Choose a tag to compare

@jeremywagemans jeremywagemans released this 08 Dec 15:57
· 61 commits to master since this release
e0be29e

This version adds the ability to enable Outbound Relay and automatically sync all relays created in the Evervault UI. This can be enabled using the enable_outbound_relay method.

# Initialize the client with your team's API key
Evervault.api_key = "<YOUR-API-KEY>"

# Encrypt your data
encrypted_data = Evervault.encrypt({ hello: 'World!' })

# Send the decrypted data to a third-party API
Evervault.enable_outbound_relay
uri = URI('https://example.com')
req = Net::HTTP::Post.new(uri.path, 'Content-Type' => 'application/json')
req.body = encrypted_data.to_json
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
res = http.request(req)