„LnxUser::chkSalt” változatai közötti eltérés
Innen: IT documentation
| 13. sor: | 13. sor: | ||
==Changelog== | ==Changelog== | ||
{| class="wikitable" | {| class="wikitable" | ||
!Version | !Version<br>(lnxUser) | ||
(lnxUser) | |||
!Description | !Description | ||
|- | |- | ||
| 20. sor: | 19. sor: | ||
|available | |available | ||
|} | |} | ||
==Examples== | ==Examples== | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
A lap 2021. szeptember 23., 19:45-kori változata
Description
Object-oriented style
public lnxUser::chkSalt( string $hash, string $salt ): bool
Procedural style
public lnxChkSalt( string $hash, string $salt ): bool
Checks the hash salt is valid.
Parameters
- salt
- You can read about password hash, salt, round relationships and requirements here.
Return Values
Returns true if salt is valid, false otherwise.
Changelog
| Version (lnxUser) |
Description |
|---|---|
| 1.2 | available |
Examples
if ( lnxChkSalt( LNX_PH_MD5 , "abcd1234" ) )
print ( 'Salt is valid' . PHP_EOL );
else
print ( 'Salt is invalid' . PHP_EOL );