Sha256: ec83b117a0cf6f28c15524aefab443a8398c463c0c292db29c4c83106c9e784c
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
# frozen_string_literal: true require 'openssl' require 'base64' require 'legion/crypt/version' require 'legion/crypt/settings' require 'legion/crypt/cipher' module Legion module Crypt class << self attr_reader :sessions include Legion::Crypt::Cipher if Legion::Settings[:crypt][:vault][:enabled] require 'legion/crypt/vault' include Legion::Crypt::Vault end def start Legion::Logging.debug 'Legion::Crypt is running start' # load_keys if Dir.exist?('./settings') && File.exist?('./settings/private.key') && File.exist?('./settings/public.key') # connect_vault unless Legion::Settings[:crypt][:vault][:token].nil? end def shutdown shutdown_renewer close_sessions end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
legion-crypt-0.2.1 | lib/legion/crypt.rb |