Module: Huberry::Encryptor
- Defined in:
- lib/encryptor.rb
Class Attribute Summary collapse
-
.default_algorithm ⇒ Object
Returns the value of attribute default_algorithm.
Class Method Summary collapse
-
.decrypt(options) ⇒ Object
Decrypts a
:valuewith a specified:key. -
.encrypt(options) ⇒ Object
Encrypts a
:valuewith a specified:key.
Class Attribute Details
.default_algorithm ⇒ Object
Returns the value of attribute default_algorithm.
10 11 12 |
# File 'lib/encryptor.rb', line 10 def default_algorithm @default_algorithm end |
Class Method Details
.decrypt(options) ⇒ Object
31 32 33 |
# File 'lib/encryptor.rb', line 31 def self.decrypt() crypt :decrypt, end |
.encrypt(options) ⇒ Object
20 21 22 |
# File 'lib/encryptor.rb', line 20 def self.encrypt() crypt :encrypt, end |