IBX.IBServices.TIBConfigService.CreateEncryptionKey

De RAD Studio API Documentation
Aller à : navigation, rechercher

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);

Propriétés

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

Description

Crée un nom de clé de chiffrement (en tant que nom par défaut) pour DES (Data Encryption Standard) ou pour AES (Advanced Encryption Standard).

Voici un exemple simple :

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

Pour créer une clé de chiffrement à l'aide de toutes les options disponibles, utilisez la syntaxe suivante :

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 ne peut être utilisée que par l'utilisateur SYSDSO.

Pour des informations complètes sur le chiffrement InterBase, voir la section "Creating Encryption Keys" de la documentation InterBase Data Definition Guide.

Voir aussi