This paper examines the great application of C# language in creating a web browser ‘QvsQ’ using CefSharp and VPN. The performance of the application is connected to the Internet, improved to display the content of all websites more quickly, not stored the private information of the user and has most of the function of the normal web browser.
Nội dung trích xuất từ tài liệu:
The VPN browser using C#
THE VPN BROWSER USING C#
SVTH: Trần Xuân Quyết
GVHD: THS. Luyện Thu Trang
Tóm tắt - Bài báo này xem xét ứng dụng của ngôn ngữ C # trong việc tạo trình duyệt web
‘QvsQ’ sử dụng CefSharp và VPN. Hiệu suất của ứng dụng được kết nối Internet, được cải thiện
để hiển thị nội dung của tất cả các trang web nhanh hơn, không bị lưu trữ thông tin riêng tư của
người dùng và có hầu hết các chức năng của trình duyệt web thông thường.
Abstract - This paper examines the great application of C# language in creating a web
browser ‘QvsQ’ using CefSharp and VPN. The performance of the application is connected to the
Internet, improved to display the content of all websites more quickly, not stored the private
information of the user and has most of the function of the normal web browser.
Keywords: QQ-Browser, the web browser, .Net Framework, C# language, CefSharp,
winform, VPN and sqlite.
I. Introduction
Nowadays, browsers like Google Chrome or FireFox manage Ram that way to offer
better stability and faster speeds. But they still use a lot of RAM. At least, in many cases,
it appears to be using more RAM than other browsers. The main reason for running each
process separately is stability. When they use too much memory, it limits the amount
available for other programs. It limits the amount available for other programs. When it
comes down to it, for example, Firefox of usage is a problem if it slows your computer
down, be that the browser or your entire system. However, QQ-Browser is the fast open
source C# web browser there is! Slightly faster than Google Chrome or Firefox when
rendering web pages due to lightweight CEF render and save the memory and these do not
gather private information of the user and the routine when the user uses the Internet, as
well.
Moreover, with the explosion of the internet, people are going through a revolution
of information technology, which brings us many benefits such as the ability to access
huge knowledge resources, as well as networkization all activities of life such as banking,
payment. However, it also comes with many risks by hecker attack with malicious intent
as well as information of other users being exploited and exploited with malicious intent.
So being able to conceal information when joining the network is now very important and
that is also why we should integrate VPN into user browsers.
II. Methodology
A. Programming Language
C# was created by Microsoft in 2000, it stay in the root of the C family of languages
and be similar to Java, C, C++ and Javascript programmers. These is the best common
languages in the world and the best attractice and effective of this language are object-
23
oriented and component-oriented which will provide language constructs to directly
support these concepts, many types of secure and robust application that run in the .Net
ecosystem. All the application created by C# is absolutely friendly with all the window
operation system and do not need install support softwares except .Net Framework.
Therefore, in my project, I use C# as a platform to solve the normal logic like split the
string, clean the URL, create a new tab or new window and check content of html.
B. Windows Forms
Winform is built base on the C#, the windows form application execute on the
computer and show the GUI which help user can easy interact. These is the reason, I use
winform to build the interface for QvsQ browser with many components corresponding
function like the screen to display html content, setting box and block link dialog.
Firgure1. The interface of browser built by Windows Form
C. CefSharp
CefSharp or Chromium Embedded Framework is an open-source software
framework for embedding a web browser within another application, especially in C#
applications. Instead of using Web Browser which is available in winform because these
execute very slow and dose not support to much, particularly HTML5 and CSS3 content
of websites, but CefSharp is an easy way to embed a full-features standards-compliant
web browser into C# application more quickly and execute all the features in a websites
include HTML5, CSS3 and all JS and JS framework as Angular and another as well.
CEF 3 is a multi-process implementation based on the Chromium Content API and
has performance similar to Google Chrome [1]. It uses asynchronous messaging to
24
communicate between the main application process and one or more render processes. It
supports PPAPI plugins and extensions, both internal and externally loadable. The single-
precess run mode is not support, but still present; currently is being used for debugging
purposes only [2].
Firstly, to use CefSharp after embedding to your application, we need to initialize
CefSetting to open the licence for executing framework by this code:
Firgure2. Code for enable CEF
Secondly, with all the new version of CEF, people can run the free video, it means
the browser just only receive and play only the video with no H 264 licence or nothing to
show,for example, videos in Twitter and Facebook .Therefore, it is important to repair the
compile option to support “proprietary codecs” was moved. The magic will happen here:
“Set GN_DEFINES=is_official_build=true proprietary_codecs=true
ffmpeg_branding=Chrome”
There are two batches file that needed to updated or created:
Firgure3. Batches for enable H 264 Licence in CefSharp
D. VPN (Virtual Private Network)
A virtual private (VPN) creates private network in public internet connection w ...