PasswordHash::__constructpublicWP 1.0

Метод класса: PasswordHash{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$PasswordHash = new PasswordHash();
$PasswordHash->__construct( $iteration_count_log2, $portable_hashes );
$iteration_count_log2(обязательный)
.
$portable_hashes(обязательный)
.

Код PasswordHash::__construct() WP 6.8.1

function __construct($iteration_count_log2, $portable_hashes)
{
	$this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';

	if ($iteration_count_log2 < 4 || $iteration_count_log2 > 31) {
		$iteration_count_log2 = 8;
	}
	$this->iteration_count_log2 = $iteration_count_log2;

	$this->portable_hashes = $portable_hashes;

	$this->random_state = microtime();
	if (function_exists('getmypid')) {
		$this->random_state .= getmypid();
	}
}