PHP.nl

crypt_preferred_method

crypt_preferred_method

Get the prefix of the preferred hash method

 **crypt_preferred_method**

Get the prefix of the preferred hash method.

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

Voorbeeld: A example

<?php
var_dump(crypt_preferred_method());
?>
string(3) "$y$"

crypt_gensalt