scp home

Home    CertX ActiveX Online Help Prev Next
Introduction
License
Certificate Request functions
csr_new
csr_export_to_file
csr_export
csr_sign
x.509 functions
x509_check_private_key
x509_checkpurpose
x509_export
x509_export_to_file
x509_free
x509_read
x509_parse
PKCS7 functions
pkcs7_decrypt
pkcs7_encrypt
pkcs7_sign
pkcs7_verify
RSA
pkey_new
pkey_export
pkey_export_to_file
pkey_get_public
pkey_get_private
public_encrypt
private_decrypt
open (decrypt)
seal (encrypt)
sign
verify
PKCS7 Constants

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")

(c) Activecrypt Software LLC, 2004

 

Browser Based Help. Published by chm2web software.