PasswordHash::encode64() public WP 1.0
{} It's a method of the class: PasswordHash{}
No Hooks.
Return
null
. Nothing.
Usage
$PasswordHash = new PasswordHash(); $PasswordHash->encode64( $input, $count );
- $input (required)
- -
- $count (required)
- -
Code of PasswordHash::encode64() PasswordHash::encode64 WP 5.7.1
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;
}