Method: Metafusion::Crypto::DigitalSignature#encrypt

Defined in:
lib/metafusion/crypto/base.rb

#encrypt(text) ⇒ Object

Encrypts given text using key instance. This assumes that private key data was provided at instantiation step.



74
75
76
# File 'lib/metafusion/crypto/base.rb', line 74

def encrypt(text)
  Base64.encode64(@private_key.send("private_encrypt", text)) if @private_key
end