Method: Xmlenc::Algorithms::RsaOaepMgf1p#encrypt
- Defined in:
- lib/xmlenc/algorithms/rsa_oaep_mgf1p.rb
#encrypt(data, options = {}) ⇒ Object
15 16 17 |
# File 'lib/xmlenc/algorithms/rsa_oaep_mgf1p.rb', line 15 def encrypt(data, = {}) @key.public_encrypt(data, OpenSSL::PKey::RSA::PKCS1_OAEP_PADDING) end |