ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage properties / HFSQL properties
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The spIterationCount property is used to:
  • Get the iteration count of the hash algorithm used for an item of type "Password". This property can be used for items of type "Password" defined in the data model editor or programmatically.
  • Set the iteration count of the hash algorithm used for an item of type "Password" (only for "Password" items described programmatically).
Example
// Describe the AFile file
...
// Describe the "Password" item
MyItem is Item Description
MyItem.Name = "Password"
MyItem.Type = hItemSecurePassword
MyItem.spDerivation = SP_PBKDF2
MyItem.spHash = SP_SHA2_256
MyItem.spIterationCount = 20000
MyItem.spLength = 256
// Validate the description of the "Password" item
HDescribeItem(AFile, MyItem)
// Validate the description of AFile file
...
Syntax

Getting the iteration count of the hash algorithm used for an item of type "Password" Hide the details

<Iterations> = <Data file>.<Item>.spIterationCount
<Iterations>: Integer
Number of iterations of the hash algorithm used.
<Data file>: Character string
Name of the file used. This name was defined in the data model editor or with the File Description type.
<Item>: Character string
Name of the item used. This name was defined in the data model editor or with the Item Description type.

Setting the iteration count of the hash algorithm used for an item of type "Password" (described programmatically) Hide the details

<Item>.spIterationCount = <Iterations>
<Item>: Character string
Name of the item used. This name was defined by the Item Description type.
<Iterations>: Integer
Number of iterations of the hash algorithm used. It is recommended to set a value between 10,000 and 30,000
Minimum version required
  • Version 27
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help