 |
Certificate Request functions |
 |
x.509 functions |
 |
PKCS7 functions |
 |
RSA |
|
open
Open (decrypt) sealed data
Syntax
Function open(sealed_data As String, open_data, env_key As String, priv_key) As Boolean
Returns True on success or False
on failure. If successful the opened data is returned in open_data.
open() opens (decrypts) sealed_data
using the private key associated with the key identifier priv_key_id
and the envelope key env_key, and fills open_data
with the decrypted data. The envelope key is generated when the data are sealed
and can only be used by one specific private key. See seal()
for more information.
Example
| size = crypto.seal("Secret text", sealed_text,
passwords, Array("file://public_key.pem")
' After execution, sealed_text will contain an encrypted variable,
password will be an array with 1 item. It will contain a password for
source text encrypted by RSA public key. crypto.open
(sealed_text,decrypted_text,passwords(0), "file://private_key.pem") |
|