standard.lib.cripto.rsa_encrypt

rsa_encrypt is available since version 1.0.

Prototype:

string rsa_encrypt(string data, string rsa_public_key)

Parameters

data
the data to encrypt
rsa_public_key
the public key to use

Description:

Encrypts using the RSA algorithm. For generating key pairs, you may want to use rsa_generate_keys.

Return value:

Returns the encrypted data.