How to
decrypt strings.
ActiveCrypt makes the
decryption of strings very easy. To do this, you must have a private key loaded in memory
(created with the GenerateCouple or loaded with the LoadKey ). Please note:to load the private key, you must
also specify a password.
DecryptedString = ActiveCryptObject.PrivateDecrypt(PrivateKey, EncryptedString)
If ActiveCryptObject.Error <> ERR_OK then MsgBox "Error happened!"
|
In an asynchronous
mode
you do not get a result immediately. Instead if this ActiveCryptimmediately
returns you an empty string and starts thread to process the decryption internally. After the
decryption is done the event OnDecryptionFinished
is fired. For more information about the decryption in an asynchronous mode please read Async mode
|