Decrypts data.
Unit
Syntax
ParametersAProtectedData [in] Encrypted data to decrypt.
AProtectedDataSize [in] Size of AProtectedData.
AData [out] Decrypted sensitive data. Can be deleted by FreeMem function (but we recommend to use SecureFree function instead).
ADataSize [out] Size of AData.
AProtectedData [in] Encrypted data to decrypt.
AProtectedData [in, out] On input: encrypted data to decrypt. Must be allocated with AllocMem function. On output: unencrypted sensitive data (size will be different). Can be deleted by EncryptBufferFree or SecureFree functions.
AData [out] Unencrypted sensitive data (size will be different). Delete this data by EncryptBufferFree or SecureFree functions.
Return valueUnencrypted sensitive data (size will be different).
RemarksDataUnprotect function decrypts memory that was encrypted using the DataProtect function.
You must encrypt and decrypt the data using the same user account and same computer.
When you have finished using the sensitive information, clear it from memory by calling the FillChar function.
See also
|