|
JWSCL Documentation
|
class procedure EncryptPointerWithPrompt(const P: Pointer; const Size: Cardinal; const Description: TJwString; const Entropy: PDataBlob; const LocalMachineOnly: Boolean; const NoUi: Boolean; const PromptFlags: TJwCryptProtectOnPromptFlagSet; const WindowParent: HWND; const Prompt: TJwString; out Data: TJwGetMemBlob);
|
Parameters |
Description |
|
const P: Pointer |
Defines a pointer which must be encrypted. |
|
const Size: Cardinal |
Defines how much data of P must be encrypted. Do specify exactly the amount of allocated memory of P. Otherwise the memory which is beyond the given Size can become overwritten by the encrypted data. |
|
const Description: TJwString |
Defines a string that describes the data. Can be empty. |
|
const Entropy: PDataBlob |
Defines additional data to be used to encrypt the data. The same Entropy must be specified to the decryption method DecryptPointerWithPrompt. Can be nil to use no entropy. |
|
const LocalMachineOnly: Boolean |
Set to true so the data can only be decrypted on the same computer; otherwise false. |
|
const NoUi: Boolean |
defines whether a dialog pops up where the user can change encryption security and set a password. To do so set the parameter to false. For none user interface apps or remote applications use true. |
|
const PromptFlags: TJwCryptProtectOnPromptFlagSet |
defines additional flags for UI dialog. This parameter applies only if NoUi is false. |
|
const Prompt: TJwString |
defines a text to be displayed in the prompt dialog. This parameter applies only if NoUi is false. |
|
out Data: TJwGetMemBlob |
[out]. This parameter receives the encrypted data. The data can be freed using FreeMem on its Data member . |
EncryptPointerWithPrompt encrypts and protects a memory block. To decrypt the data use DecryptPointerWithPrompt.
|
Exceptions |
Description |
|
EjwsclCryptApiException |
if an underlying API function failed. |
|
Copyright (c) 2010. All rights reserved.
This help was created by Doc-O-Matic sponsored by toolsfactory software inc. |
|
What do you think about this topic? Send feedback!
|