Skip to content

SetEncryptionKey

function

Delphi
function SetEncryptionKey (EncryptionMethod: TEncryptionMethod; KeyValue: string): Boolean;
C++Builder
bool __fastcall SetEncryptionKey(TEncryptionMethod EncryptionMethod, System::UnicodeString KeyValue);
C#
public bool SetEncryptionKey(TEncryptionMethod EncryptionMethod, string KeyValue);
VB.NET
Public Function SetEncryptionKey(EncryptionMethod As TEncryptionMethod, KeyValue As String) As Boolean
C++/Qt
BOOL SetEncryptionKey (TEncryptionMethod EncryptionMethod, wchar_t *KeyValue);

Sets the key used to encrypt the video/audio during recording, and the key used by Encrypt_File.

KeyValue: 16 or 32 characters (with em_AES_Encryption: 128-bit or 256-bit AES key); an empty string disables the encryption.

EncryptionMethod: em_AES_Encryption is recommended, em_Fast_Encryption is only an obfuscation (see TEncryptionMethod).