Class: SecretX::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/secretx/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_ivObject

Returns the value of attribute aes_iv.



5
6
7
# File 'lib/secretx/configuration.rb', line 5

def aes_iv
  @aes_iv
end

#aes_keyObject

Returns the value of attribute aes_key.



5
6
7
# File 'lib/secretx/configuration.rb', line 5

def aes_key
  @aes_key
end

#aes_modeObject

Returns the value of attribute aes_mode.



5
6
7
# File 'lib/secretx/configuration.rb', line 5

def aes_mode
  @aes_mode
end

#encode_modeObject

Returns the value of attribute encode_mode.



5
6
7
# File 'lib/secretx/configuration.rb', line 5

def encode_mode
  @encode_mode
end

#hash_modeObject

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_pathObject

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_pathObject

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_pwdObject

Returns the value of attribute rsa_pwd.



5
6
7
# File 'lib/secretx/configuration.rb', line 5

def rsa_pwd
  @rsa_pwd
end