IBX.IBServices.TIBConfigService.CreateEncryptionKey

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

procedure CreateEncryptionKey(keyname : String; Default : Boolean;  EncryptType : TIBEncryptionTypes; WithLength : integer; Password : String; RandomInitvector : Boolean;  RandomPad : Boolean; Description : String);

C++

void __fastcall CreateEncryptionKey(System::UnicodeString keyname, bool Default, TIBEncryptionTypes EncryptType, int WithLength, System::UnicodeString Password, bool RandomInitvector, bool RandomPad, System::UnicodeString Description);

Properties

Type Visibility Source Unit Parent
procedure
function
public
IBX.IBServices.pas
IBX.IBServices.hpp
IBX.IBServices TIBConfigService

Description

Creates an encryption key name (as the default) for either DES (Data Encryption Standard) or AES (Advanced Encryption Standard).

Here is a simple example:

 CreateEncryptionKey(‘payroll_key’, DES, 0, ‘’, false, false, ‘’);

To create an encryption key using all of the available options, use the following syntax:

CreateEncryptionKey keyname [as default] [for {AES | DES}] [with length number-of-bits [bits]]  [password {'user-password' | system encryption password}] [init_vector {NULL | random}] [pad {NULL | random}] [description ‘some user description’].

CreateEncryptionKey can be used only by the SYSDSO user.

For full information about InterBase encryption, see "Creating Encryption Keys" in the InterBase Data Definition Guide.

See Also