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.
|