This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# OpenSSL::PKey::PKey.encrypt (from ruby core) ### Implementation from PKey --- pkey.encrypt(data [, options]) -> string --- Performs a public key encryption operation using `pkey`. See #decrypt for the reverse operation. Added in version 3.0. See also the man page EVP_PKEY_encrypt(3). `data` : A String to be encrypted. `options` : A Hash that contains algorithm specific control operations to OpenSSL. See OpenSSL's man page EVP_PKEY_CTX_ctrl_str(3) for details. Example: pkey = OpenSSL::PKey.generate_key("RSA", rsa_keygen_bits: 2048) data = "secret data" encrypted = pkey.encrypt(data, rsa_padding_mode: "oaep") decrypted = pkey.decrypt(data, rsa_padding_mode: "oaep") p decrypted #=> "secret data"
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.