Class: Lite::Encryption::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



10
11
12
13
14
# File 'lib/lite/encryption/configuration.rb', line 10

def initialize
  @encryption_iv = Lite::Encryption::Key.generate_iv
  @encryption_key = Lite::Encryption::Key.generate_key
  @encryption_salt = Lite::Encryption::Key.generate_salt
end

Instance Attribute Details

#encryption_ivObject

Returns the value of attribute encryption_iv.



8
9
10
# File 'lib/lite/encryption/configuration.rb', line 8

def encryption_iv
  @encryption_iv
end

#encryption_keyObject

Returns the value of attribute encryption_key.



8
9
10
# File 'lib/lite/encryption/configuration.rb', line 8

def encryption_key
  @encryption_key
end

#encryption_saltObject

Returns the value of attribute encryption_salt.



8
9
10
# File 'lib/lite/encryption/configuration.rb', line 8

def encryption_salt
  @encryption_salt
end