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

Innen: IT documentation
 
(Egy közbenső módosítás ugyanattól a szerkesztőtől nincs mutatva)
10. sor: 10. sor:




Returns the current default password hash method. See [https://doc.onlinesoft.org/index.php%3Ftitle=LnxUser_PHP_Class_Reference#Constants LNX_PH family of constants].
Returns the current default password hash method. See [https://doc.onlinesoft.org/index.php?title=LnxUser_PHP_Class_Reference#Constants LNX_PH family of constants].
== Changelog ==
== Changelog ==
{| class="wikitable"
{| class="wikitable"
22. sor: 22. sor:
== Examples ==
== Examples ==
<syntaxhighlight lang="php">
<syntaxhighlight lang="php">
print( lnxGetDefaultPasswordHash() . PHP_EOL );
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 );
</syntaxhighlight>
</syntaxhighlight>
[[Kategória:LnxUser]]
[[Kategória:LnxUser]]

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

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 );