Class: Reedb::MCypher
- Inherits:
-
Object
- Object
- Reedb::MCypher
- Defined in:
- lib/reedb/security/encryption.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#init ⇒ Object
readonly
Attribute reader to get init state of crypt module.
Instance Method Summary collapse
- #decrypt(string) ⇒ Object
- #encrypt(string) ⇒ Object
-
#initialize ⇒ MCypher
constructor
A new instance of MCypher.
- #start_encryption ⇒ Object
- #stop_encryption ⇒ Object
Constructor Details
#initialize ⇒ MCypher
Returns a new instance of MCypher.
21 22 23 |
# File 'lib/reedb/security/encryption.rb', line 21 def initialize() @init = false end |
Instance Attribute Details
#init ⇒ Object (readonly)
Attribute reader to get init state of crypt module
19 20 21 |
# File 'lib/reedb/security/encryption.rb', line 19 def init @init end |
Instance Method Details
#decrypt(string) ⇒ Object
34 35 |
# File 'lib/reedb/security/encryption.rb', line 34 def decrypt(string) end |
#encrypt(string) ⇒ Object
31 32 |
# File 'lib/reedb/security/encryption.rb', line 31 def encrypt(string) end |
#start_encryption ⇒ Object
25 26 |
# File 'lib/reedb/security/encryption.rb', line 25 def start_encryption end |
#stop_encryption ⇒ Object
28 29 |
# File 'lib/reedb/security/encryption.rb', line 28 def stop_encryption end |