Accuracer: The First And Only Cross-Platform BDE Replacement
Client-Server Single-File Embedded Database with SQL for Delphi / C++Builder / Kylix


TACRCryptoParamsEditor.SetKey
TACRCryptoParamsEditor
Top 

Sets a binary key for the encryption and decryption.

Delphi syntax:
procedure SetKey(Key: Pointer; KeySize: Integer);

C++ syntax:

void __fastcall SetKey(void * Key, int KeySize);

Description
Call SetKey to specify the binary encryption key.
SetKey call sets Password to the empty string.
In this case encryption and decryption routines will use the key you have set instead of the password.
Key is a buffer with binary key.
KeySize is a key length in bytes.

Note: You may read KeySize property to learn the size of key you need to generate a key or use another size you prefer. You can use MakeRandomKey method for generating a random key.  


© AidAim Software Accuracer: