Module: Kernel
- Defined in:
- lib/ezcrypter/kernel.rb
Instance Method Summary collapse
-
#_ez_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.
-
#_ez_decrypt64(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.
-
#_ez_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.
-
#_ez_encrypt64(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
#_ez_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/ezcrypter/kernel.rb', line 11 def _ez_decrypt(value, worker = :default) EzCrypter::Keeper.instance.worker(worker).ez_decrypt(value) end |
#_ez_decrypt64(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.
23 24 25 |
# File 'lib/ezcrypter/kernel.rb', line 23 def _ez_decrypt64(value, worker = :default) EzCrypter::Keeper.instance.worker(worker).ez_decrypt64(value) end |
#_ez_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/ezcrypter/kernel.rb', line 5 def _ez_encrypt(value, worker = :default) EzCrypter::Keeper.instance.worker(worker).ez_encrypt(value) end |
#_ez_encrypt64(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.
17 18 19 |
# File 'lib/ezcrypter/kernel.rb', line 17 def _ez_encrypt64(value, worker = :default) EzCrypter::Keeper.instance.worker(worker).ez_encrypt64(value) end |