Docsity

Online Voting System: A Comprehensive Analysis of Implementation and Security, Study notes of Computer science

Toggle sidebar
bg1
STUDENT DECLARATION
This is to certify that I have completed the Summer Project entitled ”Online Voting System” under the
guidance of “Mr. Suresh Giri” in partial fulfillment of the requirements for the degree of Bachelor of
Information Management at Faculty of Management, Tribhuvan University. This is my original work
and I have not submitted it earlier elsewhere.
Signature:
Date:2018 November 25
Name: Awash Ghimire
i
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f

Partial preview of the text

Download Online Voting System: A Comprehensive Analysis of Implementation and Security and more Study notes Computer science in PDF only on Docsity!

STUDENT DECLARATION

This is to certify that I have completed the Summer Project entitled ”Online Voting System” under the guidance of “ Mr. Suresh Giri ” in partial fulfillment of the requirements for the degree of Bachelor of Information Management at Faculty of Management, Tribhuvan University. This is my original work and I have not submitted it earlier elsewhere. Signature: Date:2018 November 25 Name: Awash Ghimire i

CERTIFICATE FROM THE SUPERVISOR

This is to certify that the summer project entitled “ Online Voting System ” is an academic work done by “ Awash Ghimire ” submitted in the partial fulfillment of the requirements for the degree of Bachelor of Information Management at Faculty of Management, Tribhuvan University under my guidance and supervision. To the best of my knowledge, the information presented by him in the summer project report has not been submitted earlier.


Signature of the Supervisor Name :Suresh Giri Designation: Sr.PHP Developer Date:2018 November 25 ii

Contents

STUDENT DECLARATION....................................................................................................I

CERTIFICATE FROM THE SUPERVISOR.......................................................................II

ACKNOWLEDGEMENT......................................................................................................III

...................................................................................................................................................VI

LIST OF FIGURES...............................................................................................................VII

EXECUTIVE SUMMARY..................................................................................................VIII

CHAPTER I: INTRODUCTION............................................................................................. 1

1.1 Background...................................................................................................................................... 1 1.2 Introduction of Organization.......................................................................................................... 2 1.3 Current Situation of the Organization........................................................................................... 2 1.4 Security Issues of Online Voting..................................................................................................... 3 1.5 Objectives of the Project................................................................................................................. 3 1.6 Scope of the Project......................................................................................................................... 3 1.7 Features............................................................................................................................................ 3 1.8 Methodology/Procedure.................................................................................................................. 3 1.9 Project Framework......................................................................................................................... 4 1.10 Data and Information.................................................................................................................... 4 1.10.1 Primary Source of Data.............................................................................................................. 4 1.10.2 Secondary Source of Data.......................................................................................................... 4 1.11 Tools Used...................................................................................................................................... 4 1.12 Testing............................................................................................................................................ 5 iv

v

LIST OF FIGURES

Figure 1 Use case Diagram Figure 2 Sequence Diagram Figure 3 Data Flow Diagram 10 Figure 4 Activity Diagram Figure 5 ER Diagarm Figure 6 Gantt Chart Figure 7 Admin/Member Login 16 Figure 8 Admin Login Figure 9 Manage Admin Figure 10 Manage Position Figure 11 Manage Candidate Figure 12 View Results Figure 13 Member Login Figure 14 Add Member Figure 15 View Candidate Figure 16 View/ Update Profile Figure 17 Member Logout vii

EXECUTIVE SUMMARY

Over the last few years, there have been a number of election observers who have suggested introducing electronic voting election processes. A general observation is that as more business is done using electronic mediums, it should not be difficult to carry out voting using electronic equipment rather than turning up at the polling place on voting day to use paper and pen. The Online Voting System (OVS) under implementation mainly addresses the voting phase. Electronic voting using the OVS should be cheaper than the present paper based arrangement. The phenomenal use of the Internet as a vehicle for improving communication, access to information and electronic commerce has led to the claim that the Internet could be used as either a replacement to attendance voting or as an additional voting option. Throughout history, election fraud has occurred in many electoral processes from which experience shows that the manual voting process is a major source of such vices and violence in many Organizations. The mechanism leading to fraud is manifested in registration places by corrupt officials who are in a position to issue voter registration data capture forms to illegitimate individuals, stuff ballot boxes, invalidate registration for opposition voters or even coerce voters. Therefore OVS shall reduce the time spend making long queues at the polling stations during voting. It shall also enable the voters to vote from any branch of the globe since this is an online application available on the internet. Cases of vote miscounts shall also be solved since at the backend of this system resides a well developed database using MYSQL that can provide the correct data once it’s correctly queried. Since the voting process shall be open as early as possible, the voters shall have ample time to decide when and whom to vote for. The main aspect behind OVS is that it enabled us to bring out the new ideas that were sustained within us for many for many days. This project offers the voters to cast easily through internet. Vote counting is also made easy by the OVS since it’s just a matter of querying the database. OVS is used by a number of countries today. Developing a good system is critical to the success of the system to prevent system failures and to gain wide acceptance as the best method available. OVS will be an inexpensive and less time consuming method once a system exhibited. OVS serves to be the best In use especially in the 21st century where human beings are embracing technology and where there is malicious struggle for power by leaders all over the world. This struggle for power has resulted in the use of all approaches by the leaders in power to remain in their positions at whatever costs even if it means applying vote rigging to win elections. With this system in place, a number of such problems shall be forgotten. I therefore hope that every organization should put the OVS technology at practice to phase out some of the problems they go through during manual voting. viii

1.2 Introduction of Organization “ONLINE VOTING SYSTEM” is an online voting technique. In this system people who have been in an organization and those who participated in election can give his\her vote online without going to any physical polling station. There is a database which is maintained in which all the names of voters with complete information is stored. In “ONLINE VOTING SYSTEM” a voter can use his\her voting right online without any difficulty. He\She has to be registered first for him/her to vote. Registration is mainly done by the system administrator for security reasons. The system Administrator registers the voters on a special site of the system visited by him only by simply filling a registration form to register voter. Employees seeking registration are expected to contact the system administrator to submit their details. After the validity of them being employees of organization has been confirmed by the system administrator by comparing their details submitted with those in existing databases such as those as the Registrar of Persons, the citizen is then registered as a voter. After registration, the voter is assigned a secret Voter ID with which he/she can use to log into the system and enjoy services provided by the system such as voting. If invalid/wrong details are submitted, then the citizen is not registered to vote. 1.3 Current Situation of the Organization The current situation of the existing manual system of voting include among others the following:

  1. Expensive and Time consuming : The process of collecting data and entering this data into the database takes too much time and is expensive to conduct, for example, time and money is spent in printing data capture forms, in preparing registration stations together with human resources, and there after advertising the days set for registration process including sensitizing voters on the need for registration, as well as time spent on entering this data to the database.
  2. Too much paper work : The process involves too much paper work and paper storage which is difficult as papers become bulky with the population size.
  3. Errors during data entry: Errors are part of all human beings; it is very unlikely for humans to be 100 percent efficient in data entry.
  4. Loss of registration forms: Some times, registration forms get lost after being filled in with voters’ details, in most cases these are difficult to follow-up and therefore many remain unregistered even though they are voting age nationals and interested in exercising their right to vote.
  5. Short time provided to view the voter register: This is a very big problem since not all people have free time during the given short period of time to check and update the voter register.
  6. Above all, a number of voters end up being locked out from voting. 2

1.4 Security Issues of Online Voting Foreign experience revealed that they are often confronted by security issues while the online voting system is running. The origin of the security issues was due to not only outsider (such as voters and attackers) but also insider (such as system developers and administrators), even just because the inheritance of some objects in the source code are unsuitable. These errors caused the voting system to crash. The proposed solutions were correspondingly outlined to hold back these attacks. For example, to avoid hacker making incursion into the voting system via network, we can design our system to transmit data without network. Another example is to limit voter to input particular data, so that we can prevent the command injection from running 1.5 Objectives of the Project The specific objectives of the project include:  Reviewing the existing/current voting process or approach in Organization ;  Coming up with an automated voting system in Organization;  Implementing a an automated/online voting system;  Validating the system to ensure that only legible voters are allowed to vote. 1.6 Scope of the Project It is focused on studying the existing system of voting in and to make sure that the peoples vote is counts, for fairness in the elective positions. This is also will produce:  Less effort and less labor intensive, as the primary cost and focus primary on creating, managing, and running a secure web voting portal.  Increasing number of voters as individuals will find it easier and more convenient to vote, especially those who are abroad having name on voter list 1.7 Features  Require less number of staff during the election.  This system is a lot easier to independently moderate the elections and subsequently reinforce its transparency and fairness.  Less capital, less effort, and less labor intensive, as the primary cost and effort will focus primarily on creating, managing, and running a secure online portal.  Increased number of voters as individual will find it easier and more convenient to vote, especially those abroad. 1.8 Methodology/Procedure  For the development of project the designing of database was done on PHPMYADMIN, back end was coded in basic PHP and for frontend we used the same basic PHP codes. 3

 (Application Server) Apache , often referred to as Server, is an open-source Java Servlet Container developed by the Apache Software Foundation. o MySqlServer:  It handles larege databases much faster than existing solutions.  It consists of multi-threaded SQL server that supports different back ends, several different client programs and libraries, administrative tools, and application programming interfaces (APIs)  Its connectivity, speed, and security make MySQL Server highly suited for accessing databases on the Internet.  Sublime Text 3.1.1- Sublime Text is a sophisticated text editor for code, markup and prose. You'll love the slick user interface, extraordinary features and amazing performance.  Web browsers : Google Chrome,Mozilla Firefox, Opera and Internet Explorer.  Git Hub : GitHub Inc. is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version control and source code management functionality of Git as well as adding its own features. 1.12 Testing Testing is evaluation of the software against requirements gathered from users and system specifications. Testing identifies important defects, flaws, or an error in the application code that must be fixed .It also assesses the feature of a system. Testing assesses the quality of the product. 1.12.1 Unit Testing Unit testing refers to the testing certain functions and areas of the code. It gives the ability to verify that all the functions work as expected. Eventually, it helps to identify failures in the algorithms as well as logic to help improve the quality of the code that composes a certain function. 1.12.2 Integration Testing Integration testing is basically a logical extension of unit testing. In simple words, two tested units are combined into a component and the interface between them is tested. It identifies problems that occur when different units are combined The different modules of this project have undergone integration testing while being merged. 1.12.3 System Testing System testing tests the behavior of whole system as defined by the scope of the development project. It might include tests based on risks as well as requirement specifications, business process, use cases or other high level descriptions of system behavior, interactions with the operating systems and system resources. It is most often the final test performed to verify that the system meets the specification and its objectives. System testing has been performed at the completion of each feature and is still taking place to make improvements on the existing system. 5

CHAPTER II: TASK AND ACTIVITIES PERFORMED

2.1 System Analysis System Analysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. Here the key question is- why all problems exist in the present system? What must be done to solve the problem? Analysis begins when a user or manager begins a study of the program using existing system. During analysis, data collected on the various files, decision points and transactions handled by the present system. The commonly used tools in the system are Data Flow Diagram etc. Training, experience and common sense are required for collection of relevant information needed to develop the system. The success of the system depends largely on how clearly the problem is defined, thoroughly investigated and properly carried out through the choice of solution. A good analysis model should provide not only the mechanisms of problem understanding but also the frame work of the solution. Thus it should be studied thoroughly by collecting data about the system. Then the proposed system should be analyzed thoroughly in accordance with the needs. System analysis can be categorized into four parts.  System planning and initial investigation  Information Gathering  Applying analysis tools for structured analysis  Feasibility study  Cost/ Benefit analysis. In our existing system the recording of user’s information is done manually, So taking more time for searching the information of the users. Another major disadvantage is that preparing the list of members that viewed any user’s information takes more time. So, after conducting the feasibility study I decided to make the manual Online Voting System to be computerized. 2.2 Preliminary Analysis In the analysis the scope of project and risk associated with it was investigated and found out that Online voting System is one of the most demanding software in the field of politics. It was learnt that rather than using flexible and user-friendly computerized system, they are maintaining all their activities manually with wastage of valuable time. I tried to figured out that some employees were using excel to enter their data. So, through research it was found that the development will surely overcome the overall problems related with the cost and time. 2.3 Problem Analysis It is related with the accessing the detailed information of a user and a candidate. So, I have initiated this project with simple requirements regarding the user and candidate information. Some of the problems for designing and developing this project are discussed below: 6

2.5 Use case Diagram Figure 1: Use case Diagram Above figure represents Use Case Diagram of the project and is a useful technique for identifying, clarifying, and organizing system requirements. It describes how a user uses a system to accomplish a particular goal. Use cases help ensure that the correct system is developed by capturing the requirements from the user's point of view. 8

2.6 Sequence Diagram A sequence diagram is a type of interaction diagram because it describes how—and in what order—a group of objects works together. A sequence diagram specifically focuses on lifelines, or the processes and objects that live simultaneously, and the messages exchanged between them to perform a function before the lifeline ends. Figure 2: Sequence Diagram Above diagram represents Sequence Diagram of the project which is a type of interaction diagram because it describes how—and in what order—a group of objects works together. A sequence diagram specifically focuses on lifelines, or the processes and objects that live simultaneously, and the messages exchanged between them to perform a function before the lifeline ends. 9

2.8 Activity Diagram Figure 4: Activity Diagram Above diagram describes the flow of control of a system. The flow can be sequential, concurrent or branched showing the overall functions of the system. 11

2.9 ER Diagram Figure 5: ER Diagram ER diagram show all the relationships between entity sets stored in the database. It illustrates the logical structure of the database. It helps to visualize how data is connected in general ways. 12