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

DecryptVariant

Sub DecryptVariant ( InputString As String, Method As ENCRYPTION_METHODS, Password As Variant) As Variant

This function provides common way for decryption of files encrypted with different encryption algorithms. InputFile contains the source file name, OutputFile resulting file. Method defines encryption method.  See EncryptVariant for available methods.

If you use ENC_RSA method you should pass handle of the loaded key in the Password parameter. You can load a key with LoadKey function.

If an error happens, the return value is false and the Error property component contains the error code. Analyzing this property you can find the reason of the failure. If you want to decrypt filesyou should use DecryptFile function.

This HTML Help has been published using the chm2web software.