method

private_encrypt

v1_9_3_392 - Show latest stable - Class: OpenSSL::PKey::RSA
private_encrypt(p1, p2 = v2)
public

Encrypt string with the private key. padding defaults to PKCS1_PADDING. The encrypted string output can be decrypted using #public_decrypt.