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