Legion::Crypt is the class responsible for encryption, managing secrets and connecting with Vault
Legion::Crypt should work identically on:
- JRuby 9.2+
- Ruby 2.4+
You can verify your installation using this piece of code:
gem install legion-crypt
require 'legion/crypt'
Legion::Crypt.start
Legion::Crypt.encrypt('this is my string')
Legion::Crypt.decrypt(message)
{
"vault": {
"enabled": false,
"protocol": "http",
"address": "localhost",
"port": 8200,
"token": null,
"connected": false
},
"cs_encrypt_ready": false,
"dynamic_keys": true,
"cluster_secret": null,
"save_private_key": false,
"read_private_key": false
}
- Matthew Iverson - current maintainer