standard.lib.cripto.rsa_decrypt

rsa_decrypt is available since version 1.0.

Prototype:

string rsa_decrypt(string data, string rsa_private_key)

Parameters

data
the encrypted data to decrypt
rsa_private_key
the private key to use

Description:

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

Return value:

Returns the decrypted data (if succeeded) or an empty string if the key was invalid.