This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

phpBB::_hash_encode64( $input,  $count,  $itoa64 )

Encode hash

Description

Source

File: bp-forums/admin/converters/phpBB.php

673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
private function _hash_encode64( $input, $count, &$itoa64 ) {
    $output = '';
    $i = 0;
 
    do {
        $value = ord( $input[$i++] );
        $output .= $itoa64[$value & 0x3f];
 
        if ($i < $count) {
            $value |= ord( $input[$i] ) << 8;
        }
 
        $output .= $itoa64[( $value >> 6 ) & 0x3f];
 
        if ( $i++ >= $count ) {
            break;
        }
 
        if ( $i < $count ) {
            $value |= ord( $input[$i] ) << 16;
        }
 
        $output .= $itoa64[( $value >> 12 ) & 0x3f];
 
        if ( $i++ >= $count ) {
            break;
        }
 
        $output .= $itoa64[($value >> 18) & 0x3f];
    } while ( $i < $count );
 
    return $output;
}

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.