Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/mack-encryption/string.rb
Instance Method Summary collapse
-
#decrypt(worker = :default) ⇒ Object
Maps to Kernel _decrypt.
-
#encrypt(worker = :default) ⇒ Object
Maps to Kernel _encrypt.
Instance Method Details
#decrypt(worker = :default) ⇒ Object
Maps to Kernel _decrypt
Examples:
some_encrypted_string.decrypt
some_encrypted_string.decrypt(:my_crypt)
17 18 19 |
# File 'lib/mack-encryption/string.rb', line 17 def decrypt(worker = :default) _decrypt(self, worker) end |
#encrypt(worker = :default) ⇒ Object
Maps to Kernel _encrypt
Examples:
"Hello World".encrypt
"Hello World".encrypt(:my_crypt)
8 9 10 |
# File 'lib/mack-encryption/string.rb', line 8 def encrypt(worker = :default) _encrypt(self, worker) end |