Class: Adminterface::Encryption::Encryptor
- Inherits:
-
Object
- Object
- Adminterface::Encryption::Encryptor
- Extended by:
- Callable
- Defined in:
- lib/adminterface/encryption/encryptor.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(message) ⇒ Encryptor
constructor
A new instance of Encryptor.
Constructor Details
#initialize(message) ⇒ Encryptor
Returns a new instance of Encryptor.
7 8 9 |
# File 'lib/adminterface/encryption/encryptor.rb', line 7 def initialize() @message = end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
5 6 7 |
# File 'lib/adminterface/encryption/encryptor.rb', line 5 def @message end |
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/adminterface/encryption/encryptor.rb', line 11 def call Base64.encode64(public_key.public_encrypt()) end |