function _generate_identifier()
    {
        $identifier = 'SSH-2.0-phpseclib_2.0';

        $ext = array();
        if (function_exists('\\Sodium\\library_version_major')) {
            $ext[] = 'libsodium';
        }

        if (extension_loaded('openssl')) {
            $ext[] = 'openssl';
        } elseif (extension_loaded('mcrypt')) {
            $ext[] = 'mcrypt';
        }

        if (extension_loaded('gmp')) {
            $ext[] = 'gmp';
        } elseif (extension_loaded('bcmath')) {
            $ext[] = 'bcmath';
        }

        if (!empty($ext)) {
            $identifier .= ' (' . implode(', ', $ext) . ')';
        }

        return $identifier;
    }
function _generate_identifier()
    {
        $identifier = 'SSH-2.0-phpseclib_2.0';

        $ext = array();
        if (function_exists('\\Sodium\\library_version_major')) {
            $ext[] = 'libsodium';
        }

        if (extension_loaded('openssl')) {
            $ext[] = 'openssl';
        } elseif (extension_loaded('mcrypt')) {
            $ext[] = 'mcrypt';
        }

        if (extension_loaded('gmp')) {
            $ext[] = 'gmp';
        } elseif (extension_loaded('bcmath')) {
            $ext[] = 'bcmath';
        }

        if (!empty($ext)) {
            $identifier .= ' (' . implode(', ', $ext) . ')';
        }

        return $identifier;
    }
function _generate_identifier ( ) { $ identifier = 'SSH-2.0-phpseclib_2.0' ; $ ext = array ( ) ; if ( function_exists ( '\\Sodium\\library_version_major' ) ) { $ ext [ ] = 'libsodium' ; } if ( extension_loaded ( 'openssl' ) ) { $ ext [ ] = 'openssl' ; } elseif ( extension_loaded ( 'mcrypt' ) ) { $ ext [ ] = 'mcrypt' ; } if ( extension_loaded ( 'gmp' ) ) { $ ext [ ] = 'gmp' ; } elseif ( extension_loaded ( 'bcmath' ) ) { $ ext [ ] = 'bcmath' ; } if ( ! empty ( $ ext ) ) { $ identifier .= ' (' . implode ( ', ' , $ ext ) . ')' ; } return $ identifier ; }
Generates the SSH identifier

You should overwrite this method in your own class if you want to use another identifier

@access protected
@return string
Generates the SSH identifier