src/GoogleAuthenticator.php
private function hashToInt(string $bytes, int $start): int
    {
        $input = substr($bytes, $start, strlen($bytes) - $start);
        $val2 = unpack('N', substr($input, 0, 4));

        return $val2[1];
    }
private function hashToInt(string $bytes, int $start): int
    {
        $input = substr($bytes, $start, strlen($bytes) - $start);
        $val2 = unpack('N', substr($input, 0, 4));

        return $val2[1];
    }
private function hashToInt ( string $ bytes , int $ start ) : int { $ input = substr ( $ bytes , $ start , strlen ( $ bytes ) - $ start ) ; $ val2 = unpack ( 'N' , substr ( $ input , 0 , 4 ) ) ; return $ val2 [ 1 ] ; }
@param string $bytes
@param int    $start

@return int
@param string $bytes @param int $start