PasswordHash::encode64()publicWP 1.0

Method of the class: PasswordHash{}

No Hooks.

Return

null. Nothing (null).

Usage

$PasswordHash = new PasswordHash();
$PasswordHash->encode64( $input, $count );
$input (required)
-
$count (required)
-

PasswordHash::encode64() code WP 6.5.2

function encode64($input, $count)
{
	$output = '';
	$i = 0;
	do {
		$value = ord($input[$i++]);
		$output .= $this->itoa64[$value & 0x3f];
		if ($i < $count)
			$value |= ord($input[$i]) << 8;
		$output .= $this->itoa64[($value >> 6) & 0x3f];
		if ($i++ >= $count)
			break;
		if ($i < $count)
			$value |= ord($input[$i]) << 16;
		$output .= $this->itoa64[($value >> 12) & 0x3f];
		if ($i++ >= $count)
			break;
		$output .= $this->itoa64[($value >> 18) & 0x3f];
	} while ($i < $count);

	return $output;
}