Class: Covert::Config
- Inherits:
-
Object
- Object
- Covert::Config
- Defined in:
- lib/covert/config.rb
Overview
Covert configuration
Instance Attribute Summary collapse
-
#cipher ⇒ Object
Returns the value of attribute cipher.
-
#cipher_key ⇒ Object
Returns the value of attribute cipher_key.
-
#hmac_digest ⇒ Object
Returns the value of attribute hmac_digest.
-
#hmac_key ⇒ Object
Returns the value of attribute hmac_key.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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
#cipher ⇒ Object
Returns the value of attribute cipher.
8 9 10 |
# File 'lib/covert/config.rb', line 8 def cipher @cipher end |
#cipher_key ⇒ Object
Returns the value of attribute cipher_key.
8 9 10 |
# File 'lib/covert/config.rb', line 8 def cipher_key @cipher_key end |
#hmac_digest ⇒ Object
Returns the value of attribute hmac_digest.
8 9 10 |
# File 'lib/covert/config.rb', line 8 def hmac_digest @hmac_digest end |
#hmac_key ⇒ Object
Returns the value of attribute hmac_key.
8 9 10 |
# File 'lib/covert/config.rb', line 8 def hmac_key @hmac_key end |