array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'de', ), 'this' => array ( 0 => 'function.crypt-preferred-method.php', 1 => 'crypt_preferred_method', 2 => 'Get the prefix of the preferred hash method', ), 'up' => array ( 0 => 'ref.xpass.php', 1 => 'Xpass Funktionen', ), 'prev' => array ( 0 => 'function.crypt-gensalt.php', 1 => 'crypt_gensalt', ), 'next' => array ( 0 => 'refs.database.php', 1 => 'Datenbankerweiterungen', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/xpass/functions/crypt-preferred-method.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

crypt_preferred_method

(PECL xpass >= 1.1.0)

crypt_preferred_methodGet the prefix of the preferred hash method

Beschreibung

crypt_preferred_method(): ?string

Get the prefix of the preferred hash method.

Parameter-Liste

Diese Funktion besitzt keine Parameter.

Rückgabewerte

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

Beispiele

Beispiel #1 A crypt_preferred_method() example

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

Das oben gezeigte Beispiel erzeugt folgende Ausgabe:

string(3) "$y$"

Siehe auch