PublicEncrypt
Sub PublicEncrypt ( PublicKey As Long, ClearText As String, [Cookie As Long] ) As String |
In the synchronous mode the PublicEncrypt function encrypts
given string with a public key and returns encrypted string. In the asynchronous mode, the
function returns empty string immediately and spawns encryption internally. After
encryption is done, OnEncryptionFinished is fired.
For more information about encryption in the asynchronous mode please see Async mode.
If an error happens the Error property
of ActiveCrypt contains the error code. For information about the error code, please see Error property. If the function is succeeded the Error has value of ERR_OK.
|