„LnxUser::chkRound” változatai közötti eltérés

Innen: IT documentation
(Új oldal, tartalma: „==Description== Object-oriented style<syntaxhighlight lang="php"> public lnxUser::chkRound( string $hash, &$round ): bool </syntaxhighlight>Procedural style<syntaxhighl…”)
 
Nincs szerkesztési összefoglaló
 
(4 közbenső módosítás ugyanattól a szerkesztőtől nincs mutatva)
1. sor: 1. sor:
==Description==
==Description==
Object-oriented style<syntaxhighlight lang="php">
Object-oriented style<syntaxhighlight lang="php">
public lnxUser::chkRound( string $hash, &$round ): bool
public lnxUser::chkRound( string $hash, string | int &$round ): bool
</syntaxhighlight>Procedural style<syntaxhighlight lang="php">
</syntaxhighlight>Procedural style<syntaxhighlight lang="php">
public lnxChkRound( string $hash, &$round ): bool
public lnxChkRound( string $hash, string | int &$round ): bool
</syntaxhighlight>Checks the round method is valid.
</syntaxhighlight>Checks the round method is valid.
==Parameters==
==Parameters==
;hash
;hash
;The hash must be one of [https://doc.onlinesoft.org/index.php%3Ftitle=LnxUser_PHP_Class_Reference LNX_PH family of constants].
:The hash must be one of [https://doc.onlinesoft.org/index.php%3Ftitle=LnxUser_PHP_Class_Reference LNX_PH family of constants].
;round
;round
You can read about password hash, salt, round relationships and requirements [https://www.php.net/manual/en/function.crypt here].
:You can read about password hash, salt, round relationships and requirements [https://www.php.net/manual/en/function.crypt here].
:! If round is valid, the normalized value will be written back to the original variable.


==Return Values==
==Return Values==
Returns '''true''' if method is valid, '''false''' otherwise.
Returns '''true''' if round is valid, '''false''' otherwise.
==Changelog==
==Changelog==
{| class="wikitable"
{| class="wikitable"
!Version
!Version<br>(lnxUser)
(lnxUser)
!Description
!Description
|-
|-
22. sor: 22. sor:
|available
|available
|}
|}
==Examples==
==Examples==
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
29. sor: 30. sor:
     print ( 'Round is invalid' . PHP_EOL );
     print ( 'Round is invalid' . PHP_EOL );
</syntaxhighlight>
</syntaxhighlight>
[[Kategória:LnxUser]]

A lap jelenlegi, 2021. szeptember 23., 20:10-kori változata

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