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

Innen: IT documentation
(Új oldal, tartalma: „==Description== Object-oriented style<syntaxhighlight lang="php"> public lnxUser::chkHash( string $hash ): bool </syntaxhighlight>Procedural style<syntaxhighlight lang=…”)
 
Nincs szerkesztési összefoglaló
 
(4 közbenső módosítás ugyanattól a szerkesztőtől nincs mutatva)
7. sor: 7. sor:


== Parameters ==
== Parameters ==
hash
; hash
 
: The method must be one of [[LnxUser PHP Class Reference|LNX_PH family of constants]].
The method must be the one of [[LnxUser PHP Class Reference|LNX_PH family of constants]].
 
 


==Return Values==
==Return Values==
19. sor: 16. sor:
==Changelog==
==Changelog==
{| class="wikitable"
{| class="wikitable"
!Version
!Version<br>(lnxUser)
(lnxUser)
!Description
!Description
|-
|-
26. sor: 22. sor:
|available
|available
|}
|}
==Examples==
==Examples==
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
if ( lnxChkHash( LNX_PH_MD5 ) )  
if ( lnxChkHash( LNX_PH_MD5 ) )  
     print ( 'Methos is valid' . PHP_EOL );
     print ( 'Method is valid' . PHP_EOL );
else
else
     print ( 'Methos is invalid' . PHP_EOL );
     print ( 'Method is invalid' . PHP_EOL );
</syntaxhighlight>
</syntaxhighlight>
[[Kategória:LnxUser]]

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

Description

Object-oriented style

public lnxUser::chkHash( string $hash ): bool

Procedural style

public lnxChkHash( string $hash ): bool

Checks the hash method is valid.

Parameters

hash
The method must be one of LNX_PH family of constants.

Return Values

Returns true if method is valid, false otherwise.

You can read about password hash, salt, round relationships and requirements here.

Changelog

Version
(lnxUser)
Description
1.2 available

Examples

if ( lnxChkHash( LNX_PH_MD5 ) ) 
    print ( 'Method is valid' . PHP_EOL );
else
    print ( 'Method is invalid' . PHP_EOL );