Class: Glib::DynamicImagesHelper::EncryptionService

Inherits:
Struct
  • Object
show all
Defined in:
app/helpers/glib/dynamic_images_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#private_keyObject

Returns the value of attribute private_key

Returns:

  • (Object)

    the current value of private_key



46
47
48
# File 'app/helpers/glib/dynamic_images_helper.rb', line 46

def private_key
  @private_key
end

#saltObject

Returns the value of attribute salt

Returns:

  • (Object)

    the current value of salt



46
47
48
# File 'app/helpers/glib/dynamic_images_helper.rb', line 46

def salt
  @salt
end

Instance Method Details

#decrypt(value) ⇒ Object



51
52
53
# File 'app/helpers/glib/dynamic_images_helper.rb', line 51

def decrypt(value)
  encryptor.decrypt_and_verify(value)
end

#encrypt(value) ⇒ Object



47
48
49
# File 'app/helpers/glib/dynamic_images_helper.rb', line 47

def encrypt(value)
  encryptor.encrypt_and_sign(value)
end