„LnxUser::getDefaultPasswordHash” változatai közötti eltérés
Innen: IT documentation
(Új oldal, tartalma: „== Description == Object-oriented style<syntaxhighlight lang="php"> </syntaxhighlight>Procedural style<syntaxhighlight lang="php"> </syntaxhighlight> == Parameters…”) |
|||
| (2 közbenső módosítás ugyanattól a szerkesztőtől nincs mutatva) | |||
| 1. sor: | 1. sor: | ||
== Description == | == Description == | ||
Object-oriented style<syntaxhighlight lang="php"> | Object-oriented style<syntaxhighlight lang="php"> | ||
public lnxUser::getDefaultPasswordHash(): string | |||
</syntaxhighlight>Procedural style<syntaxhighlight lang="php"> | </syntaxhighlight>Procedural style<syntaxhighlight lang="php"> | ||
public lnxGetDefaultPasswordHash(): string | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Get the current default password hash method. | |||
== Return Values == | == Return Values == | ||
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" | ||
| 26. sor: | 22. sor: | ||
== Examples == | == Examples == | ||
<syntaxhighlight lang="php"> | <syntaxhighlight lang="php"> | ||
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 );