LnxUser::chkRound

Innen: IT documentation

Description

Object-oriented style

public lnxUser::chkRound( string $hash, string | int &$round ): bool

Procedural style

public lnxChkRound( string $hash, string | int &$round ): bool

Checks the round method is valid.

Parameters

hash
The hash must be one of LNX_PH family of constants.
round
You can read about password hash, salt, round relationships and requirements here.
! If round is valid, the normalized value will be written back to the original variable.

Return Values

Returns true if round is valid, false otherwise.

Changelog

Version
(lnxUser)
Description
1.2 available

Examples

if ( lnxChkRound( LNX_PH_BLOWFISH_Y, 22 ) ) 
    print ( 'Round is valid' . PHP_EOL );
else
    print ( 'Round is invalid' . PHP_EOL );