Class: Covert::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/covert/config.rb

Overview

Covert configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



10
11
12
13
14
15
# File 'lib/covert/config.rb', line 10

def initialize
  @cipher_key = nil
  @cipher = 'AES-256-CBC'
  @hmac_key = nil
  @hmac_digest = 'SHA256'
end

Instance Attribute Details

#cipherObject

Returns the value of attribute cipher.



8
9
10
# File 'lib/covert/config.rb', line 8

def cipher
  @cipher
end

#cipher_keyObject

Returns the value of attribute cipher_key.



8
9
10
# File 'lib/covert/config.rb', line 8

def cipher_key
  @cipher_key
end

#hmac_digestObject

Returns the value of attribute hmac_digest.



8
9
10
# File 'lib/covert/config.rb', line 8

def hmac_digest
  @hmac_digest
end

#hmac_keyObject

Returns the value of attribute hmac_key.



8
9
10
# File 'lib/covert/config.rb', line 8

def hmac_key
  @hmac_key
end