Name | Description | |
---|---|---|
key | Encryption key. |
Sets an encryption key.
When using encryption, before using NetZ to execute the Session::JoinSession
or Session::CreateSession
function, execute Stream::GetSettings.SetIsEncryptionRequired(true);
and set a key using Stream::GetSettings.SetEncryptionKey
. If canceling encryption, do so after executing the NetZ::Terminate
function. Operations outside the correct segment result in an assertion, or settings fail.
The length of the key can be between MIN_ENCRYPT_KEY_LEN
and MAX_ENCRYPT_KEY_LEN
bytes.
SetIsEncryptionRequired
MAX_ENCRYPT_KEY_LEN
MIN_ENCRYPT_KEY_LEN
GetEncryptionKeyPaylod
GetEncryptionKeyLength
CONFIDENTIAL