Module: Kernel
- Defined in:
- lib/mack-encryption/kernel.rb
Instance Method Summary collapse
-
#_decrypt(value, worker = :default) ⇒ Object
A helper method that calls Mack::Utils::Crypt::Keeper with the specified worker and calls the decrypt method on that worker.
-
#_encrypt(value, worker = :default) ⇒ Object
A helper method that calls Mack::Utils::Crypt::Keeper with the specified worker and calls the encrypt method on that worker.
Instance Method Details
#_decrypt(value, worker = :default) ⇒ Object
A helper method that calls Mack::Utils::Crypt::Keeper with the specified worker and calls the decrypt method on that worker.
11 12 13 |
# File 'lib/mack-encryption/kernel.rb', line 11 def _decrypt(value, worker = :default) Mack::Utils::Crypt::Keeper.instance.worker(worker).decrypt(value) end |
#_encrypt(value, worker = :default) ⇒ Object
A helper method that calls Mack::Utils::Crypt::Keeper with the specified worker and calls the encrypt method on that worker.
5 6 7 |
# File 'lib/mack-encryption/kernel.rb', line 5 def _encrypt(value, worker = :default) Mack::Utils::Crypt::Keeper.instance.worker(worker).encrypt(value) end |