LnxUser::getDefaultPasswordHash

Innen: IT documentation
A lap korábbi változatát látod, amilyen Moszat (vitalap | szerkesztései) 2021. szeptember 23., 19:20-kor történt szerkesztése után volt. (→‎Examples)
(eltér) ← Régebbi változat | Aktuális változat (eltér) | Újabb változat→ (eltér)

Description

Object-oriented style

public lnxUser::getDefaultPasswordHash(): string

Procedural style

public lnxGetDefaultPasswordHash(): string

Get the current default password hash method.

Return Values

Returns the current default password hash method. See LNX_PH family of constants.

Changelog

Version
(lnxUser)
Description
1.1 available

Examples

print( 'Default password hash type is ' );
switch ( lnxGetDefaultPasswordHash() ) {
	case LNX_PH_DES:
		print( 'Standard Data Encryption Standard based hash');
	break;
	case LNX_PH_EDES:
		print( 'Extended Data Encryption Standard based hash');
	break;
	case LNX_PH_MD5:
		print( 'Message-Digest algorithm 5 based hash');
	break;
	case LNX_PH_BLOWFISH_A:
	case LNX_PH_BLOWFISH_B:
	case LNX_PH_BLOWFISH_X:
	case LNX_PH_BLOWFISH_Y:
		print( 'Blowfish block cipher based hash');
	break;
	case LNX_PH_SHA256:
		print( 'Secure Hash Algorithm 256 based hash');
	break;
	case LNX_PH_SHA512:
		print( 'Secure Hash Algorithm 512 based hash');
	break;
}
print ( PHP_EOL );