Class: SecretX::Configuration
- Inherits:
-
Object
- Object
- SecretX::Configuration
- Defined in:
- lib/secretx/configuration.rb
Instance Attribute Summary collapse
-
#aes_iv ⇒ Object
Returns the value of attribute aes_iv.
-
#aes_key ⇒ Object
Returns the value of attribute aes_key.
-
#aes_mode ⇒ Object
Returns the value of attribute aes_mode.
-
#encode_mode ⇒ Object
Returns the value of attribute encode_mode.
-
#hash_mode ⇒ Object
Returns the value of attribute hash_mode.
-
#rsa_pri_key_path ⇒ Object
Returns the value of attribute rsa_pri_key_path.
-
#rsa_pub_key_path ⇒ Object
Returns the value of attribute rsa_pub_key_path.
-
#rsa_pwd ⇒ Object
Returns the value of attribute rsa_pwd.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
9 10 11 12 13 14 15 |
# File 'lib/secretx/configuration.rb', line 9 def initialize self.aes_key = 'd87bdfe63b7dda1452f3361b57b560c52e1a2aaffdcb31ae38f44a06efc536d4' self.aes_iv = nil self.aes_mode = Mode::AES_256_CBC self.hash_mode = Mode::SHA_256 self.encode_mode = Mode::BASE_64 end |
Instance Attribute Details
#aes_iv ⇒ Object
Returns the value of attribute aes_iv.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def aes_iv @aes_iv end |
#aes_key ⇒ Object
Returns the value of attribute aes_key.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def aes_key @aes_key end |
#aes_mode ⇒ Object
Returns the value of attribute aes_mode.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def aes_mode @aes_mode end |
#encode_mode ⇒ Object
Returns the value of attribute encode_mode.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def encode_mode @encode_mode end |
#hash_mode ⇒ Object
Returns the value of attribute hash_mode.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def hash_mode @hash_mode end |
#rsa_pri_key_path ⇒ Object
Returns the value of attribute rsa_pri_key_path.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def rsa_pri_key_path @rsa_pri_key_path end |
#rsa_pub_key_path ⇒ Object
Returns the value of attribute rsa_pub_key_path.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def rsa_pub_key_path @rsa_pub_key_path end |
#rsa_pwd ⇒ Object
Returns the value of attribute rsa_pwd.
5 6 7 |
# File 'lib/secretx/configuration.rb', line 5 def rsa_pwd @rsa_pwd end |