rsa_public_encrypt()

 
Encrypts data using the public key portion of an RSA keypair.
Syntax
rsa_public_encrypt( rsa, plaintext, encrypted var )
Returns 1 on success, 0 on error.
  • rsa = The internal reference to the RSA public key used for encryption
  • plaintext = The data to be encrypted
  • encrypted = A variable which receives the encrypted ciphertext in raw binary format
User Annotations: rsa_public_encrypt