This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

public_encrypt

        # OpenSSL::PKey::RSA.public_encrypt

(from ruby core)
### Implementation from RSA
---
    rsa.public_encrypt(string)          -> String
    rsa.public_encrypt(string, padding) -> String

---

Encrypt `string` with the public key.  `padding` defaults to
PKCS1_PADDING. The encrypted string output can be decrypted using
#private_decrypt.

**Deprecated in version 3.0**. Consider using PKey::PKey#encrypt and
PKey::PKey#decrypt instead.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.