php8.5
Home/ Manual/ xpass / functions/ crypt_preferred_method

crypt_preferred_method

PHP function Edit on GitHub ✎

(PECL xpass >= 1.1.0)

Get the prefix of the preferred hash method

Description

crypt_preferred_method(): string|null

Get the prefix of the preferred hash method.

Parameters Parameters

Return Values

Returns a string with the prefix, or null in case of an error.

Examples

A crypt_preferred_method() example

php
<?php
var_dump(crypt_preferred_method());
?>

The above example will output:

output
string(3) "$y$"

See Also

Source: reference/xpass/functions/crypt-preferred-method.xml · from the official PHP manual (php/doc-en)