LnxUser::chkHash

Innen: IT documentation
A lap korábbi változatát látod, amilyen Moszat (vitalap | szerkesztései) 2021. szeptember 23., 19:39-kor történt szerkesztése után volt. (Új oldal, tartalma: „==Description== Object-oriented style<syntaxhighlight lang="php"> public lnxUser::chkHash( string $hash ): bool </syntaxhighlight>Procedural style<syntaxhighlight lang=…”)
(eltér) ← Régebbi változat | Aktuális változat (eltér) | Újabb változat→ (eltér)

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 the 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 ( 'Methos is valid' . PHP_EOL );
else
    print ( 'Methos is invalid' . PHP_EOL );