Root > Reference > All Functions > DataUnprotect

Procedure DataUnprotect

Previous pageReturn to chapter overviewNext page   

Decrypts data.

 

Unit

EEncrypt

 

Syntax

 

Code (Delphi)

procedure DataUnprotect(

const AProtectedData: Pointer;

const AProtectedDataSize: Cardinal;

out AData: Pointer;

out ADataSize: Cardinal

); overload;

 

function DataUnprotect(

const AProtectedData: RawByteString

): RawByteString; overload;

 

procedure DataUnprotect(

var AProtectedData: TEncryptBuffer

); overload;

 

procedure DataUnprotect(

const AProtectedData: TEncryptBuffer;

out AData: TEncryptBuffer

); overload;

 

Parameters

AProtectedData [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 value

Unencrypted sensitive data (size will be different).

 

Remarks

DataUnprotect 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




Send feedback... Build date: 2023-09-11
Last edited: 2023-09-11
PRIVACY STATEMENT
The documentation team uses the feedback submitted to improve the EurekaLog documentation. We do not use your e-mail address for any other purpose. We will remove your e-mail address from our system after the issue you are reporting has been resolved. While we are working to resolve this issue, we may send you an e-mail message to request more information about your feedback. After the issues have been addressed, we may send you an email message to let you know that your feedback has been addressed.


Permanent link to this article: https://www.eurekalog.com/help/eurekalog/topic_function_eencrypt_dataunprotect.php