IPWorks Encrypt 2020 Delphi Edition

Questions / Feedback?

PBKDF Component

Properties   Methods   Events   Configuration Settings   Errors  

The PBKDF component supports using PBKDF1 and PBKDF2 to derive a key using a variety of algorithms.

Syntax

TipcPBKDF

Remarks

The PBKDF component implements PBKDF2(Password-Based Key Derivation Function 2) and PBKDF1 described in RFC 2898.

The simplest way to use the component is to simply specify the Password and Salt and call CreateKey. Before calling CreateKey additional properties such as Algorithm, KeyLength, and Iterations may be set. The component supports a variety of algorithms including HMAC-SHA1, HMAC-SHA256, HMAC-MD5, and more.

The Version property controls whether PBKDF1 or PBKDF2 (default) is used, although it is recommended to use PBKDF2.

After calling CreateKey the derived key will be held in Key.

Code Example:

Pbkdf pbkdf = new Pbkdf();
pbkdf.Password = "password";
pbkdf.Salt = "0123456789ABCDEF";
pbkdf.KeyLength = 4096;
pbkdf.CreateKey();
      
//Now do something with pbkdf.Key

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for further details.

AlgorithmThe underlying pseudorandom function.
IterationsThe number of iterations to perform.
KeyThe derived key.
KeyLengthThe desired length in bits of the derived key.
PasswordThe master password from which a derived key is generated.
SaltThe cryptographic salt.
UseHexWhether the key is hex encoded.
VersionThe PBKDF version.

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting.
CreateKeyCreates a derived key.
ResetResets the component.

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.

ErrorInformation about errors during data delivery.

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.

AllowEmptyPasswordWhether an empty password can be used.
BuildInfoInformation about the product's build.
CodePageThe system code page used for Unicode to Multibyte translations.
LicenseInfoInformation about the current license.
UseInternalSecurityAPITells the component whether or not to use the system security libraries or an internal implementation.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Encrypt 2020 Delphi Edition - Version 20.0 [Build 8155]