MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system


TMsgCryptoParamsEditor.SetKey
TMsgCryptoParamsEditor
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 MsgCommunicator: Delphi Messenger Sdk Instant Messaging Sdk Im Sdk