Class: Glib::DynamicImagesHelper::EncryptionService
- Inherits:
-
Struct
- Object
- Struct
- Glib::DynamicImagesHelper::EncryptionService
- Defined in:
- app/helpers/glib/dynamic_images_helper.rb
Instance Attribute Summary collapse
-
#private_key ⇒ Object
Returns the value of attribute private_key.
-
#salt ⇒ Object
Returns the value of attribute salt.
Instance Method Summary collapse
Instance Attribute Details
#private_key ⇒ Object
Returns the value of attribute private_key
46 47 48 |
# File 'app/helpers/glib/dynamic_images_helper.rb', line 46 def private_key @private_key end |
#salt ⇒ Object
Returns the value of attribute 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 |