Activecrypt Online Help Prev Next
About ActiveCrypt
About
ActiveCrypt overview
How to ...
How to make pair of keys
Create new public key from private
How to decrypt string
How to encrypt string
How to save keys
Free keys
Programmer reference
Hash
Hash overview
Methods
HashFile
HashVariant
Properties
Error
Crypt
Encryption overview
Methods
DecryptFile
DecryptVariant
EncryptFile
EncryptVariant
FreeKey
LoadKeyFromString
LoadKey
Properties
AddCRLF
Error
KeySize
Base64
Base64 overview
Methods
DecodeFile
DecodeVariant
EncodeFile
EncodeVariant
Properties
AddCRLF
Error
Sign
Sign overview
Methods
FreeKey
LoadKey
LoadKeyFromString
MakeVariantSignature
MakeFileSignature
VerifyFileSignature
VerifyVariantSignature
Properties
AddCRLF
Error
RSACrypt (old, use Crypt)
Methods
FreeKey
GenerateCouple
GeneratePublicKey
GetVersion
LoadKeyFromString
LoadKey
PublicEncrypt
PrivateDecrypt
SaveKeyToString
SaveKey
Properties
About
Async
Error
Events
OnDecryptionFinished
OnEncryptionFinished
OnError
OnKeyGenerationFinished
Disclaimer

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

This HTML Help has been published using the chm2web software.