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

Free keys

You must free the keys when you don't want to use them anymore. Although the keys are a small memory resource, it is better to free them in time. When you destroy RSACrypt object all keys produced by this object will be freed automatically.

Here is an example:


        Set ActiveCryptObject = new ActiveCryptLib.RSACrypt
        ActiveCryptObject.GenerateCouple 256, PrivateKey, PublicKey
        ...
        ActiveCryptObject.FreeKey PrivateKey
        ActiveCryptObject.FreeKey PublicKey
        ' continue to work with ActiveCryptObject
This HTML Help has been published using the chm2web software.