LnxUser::getPassHash

Innen: IT documentation
A lap korábbi változatát látod, amilyen Moszat (vitalap | szerkesztései) 2021. szeptember 19., 16:25-kor történt szerkesztése után volt.

Description

Object-oriented style

public lnxUser::getPassHash ( string $password, string $salt = '', string $hash = LNX_PH_SHA512 ): string

Procedural style

lnxGetPassHash ( string $password, string $salt = '', string $hash = LNX_PH_SHA512 ): string

Creates a password hash.

Parameters

password
Password string.
salt
Password salt. Must be alphanumeric and between 8 and 16 characters.
hash
Hash algorithm type. Use LNX_PH family of constants.

Return Values

Returns a hashed password or empty if an error occurred.

Changelog

Version
(lnxUser)
Description
1.00 available

Examples

$hash = lnxGetPassHash ( 'HelloNSA' );

print( "Password hash is $hash." . PHP_EOL );