You are on page 1of 6

Proceedings of the Fourth International Conference on Smart Systems and Inventive Technology (ICSSIT-2022)

IEEE Xplore Part Number: CFP22P17-ART; ISBN: 978-1-6654-0118-0

Ticketing System Using AES


Encryption Based QR Code
Nirmit Gangurde
Department of Information Technology
2022 4th International Conference on Smart Systems and Inventive Technology (ICSSIT) | 978-1-6654-0118-0/22/$31.00 ©2022 IEEE | DOI: 10.1109/ICSSIT53264.2022.9716234

Rajiv Gandhi Institute Of Technology


University Of Mumbai
Mumbai, India
nirmitgang z@g mail.co m

Subendu Ghosh
Department of Information Technology
Rajiv Gandhi Institute Of Technology
University Of Mumbai
Mumbai, India
ghoshsubendu60@gmail.co m

Akash Giri
Department of Information Technology
Rajiv Gandhi Institute Of Technology
University Of Mumbai
Mumbai, India
ak03112000@g mail.co m

Swapnil Gharat
Assistant Professor
Department of Information Technology
Rajiv Gandhi Institute Of Technology
University Of Mumbai
Mumbai, India
swapnil.gharat@mct rg it.ac.in

Abstract-Current ticket reservation system is through patterns that are present in both
based on use of QR Code, which contains the horizontal and vertical components of the QR
code. Hence, the QR generated will be secured
details of the ticket records such as train
timings, its arrival timings, departure timings and end to end encrypted which ensures data
and passenger reservations details. The printed security while reserving ticket. Apache kafka is
ticket consists of information which includes all used in the system for messaging purpose. A
train details with QR Code Information. The mobile application is designed to scan the
Ticket reservation system involves three main encrypted QR Code. On decrypting, the
factors the database, online passenger and information about the passenger can be viewed.
dataset. In the proposed system GUI is
Keywords-Ticket Generation, QR Codes, AES
developed for the users through by which users
book their tickets and the ticket generated will Encryption, Apache kafka, Scanning QR
be in the form of QR code which is generated codes, Decryption.
after booking confirmation. The QR Code will
be generated on the basis of encrypted data 1. INTRODUCTION
entered by the user. For encryption, using AES The use of QR codes allows for a safe electronic
encryption algorithm QR Code will be version of a ticket in the form of a QR Code,
generated as per passenger/user’s and train which aids in information security. [1]A QR code
details. The required data is then generated is a matrix barcode that contains data. To store

978-1-6654-0118-0/22/$31.00 ©2022 IEEE 201


Authorized licensed use limited to: UNIVERSITI TEKNOLOGI MARA. Downloaded on November 03,2023 at 15:47:40 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Smart Systems and Inventive Technology (ICSSIT-2022)
IEEE Xplore Part Number: CFP22P17-ART; ISBN: 978-1-6654-0118-0

data efficiently, a QR code employs four see previous reservations. Users can book tickets,
standardised encoding schemes. Because of the and the produced ticket is in the form of a QR
widespread use of smart phones, [2][3]QR codes are code. However, there is no mechanism in place at
now commonly used in the train ticketing system. the ticket checker's end for scanning and
Because the QR code's encoding and decoding validating passenger tickets. The QR Code
process is a public patent, anybody may read the generation takes a long time to process. The QR
data contained in the QR code using any standard Code ticket is not very safe because anyone may
QR code reader. [4] In the current train ticket scan it and see the information. Ticket forgery
booking system, passengers utilise APPs on their was carried out in this system.
smartphones to purchase tickets, and the server
subsequently sends them a QR code. On the basis 2.2 UTS
of the message deciphered from the legal This application is used to purchase tickets for
passenger's QR code, dishonest persons can local trains. Normal booking, Quick booking,
simply produce a false QR code as an e-ticket, or Platform booking, Season booking, and QR
manufacture a fake QR code by photographing booking are some of the features. At the ticket
the legal passenger's QR code with a smartphone checker's end, there is no checking system
camera. Unfortunately, the computerised ticketing installed.
system may read this new bogus QR code as a 3. PROPOSED SYSTEM
legitimate one. Therefore, to overcome this
problem a system is designed in which GUI is An encrypted QR code ticket which is more
developed for the users through which users can secure than the ordinary QR code is introduced. In
enter their details and the ticket generated will be this system the user will register himself and fill
in form of QR code which is generated after all the details required for getting a ticket. After
booking confirmation. [5][6]The QR code will be entering all the required details and successful
generated on the basis of encrypted data entered payment transaction, the user will receive a
by the user. [7][8] For encryption AES Algorithm is encrypted QR code. Apache Kafka is used for
used. The user’s detail will be stored in the messaging purpose in the system. AES encryption
database in the encrypted format. [9] An SMS will algorithm is used for data encryption .All the
be sent to the user using apache kafka after details of the passenger will be stored in the
successful payment transaction. Along with ticket database.At the ticket checker’s end a mobile
generation ticket checking is also very important. application is designed to scan the encrypted QR
As a result, digital ticket checking will be Code. On decrypting, the information about the
extremely useful for 100% ticket verification. [10] passenger can be viewed and verified.
At the Ticket Checker’s end a mobile application
will be designed to scan the encrypted QR code.
[11]
On decryption the information about the
passenger can be viewed and verified [12][13] .The
checker and the passenger both will get a message
that the ticket has been checked and verified.The
ticket will be verified by the ticket checker in this
manner [14] . This approach ensures that the huge
number of tickets are examined in the shortest
amount of time. [15] The main goal of this project
is to provide not only railway ticket reservation
but also 100% ticket checking, as well as a new
innovation for efficient ticket checking in the
shortest amount of time with the least amount of
interruption and at the user's convenience.

2. EXISTING SYSTEM

2.1 IRCTC
Certain aspects of the present system include
the ability to book a travel, cancel a journey, and Fig.3 (a) Working on Clients End (Generation)

978-1-6654-0118-0/22/$31.00 ©2022 IEEE 202


Authorized licensed use limited to: UNIVERSITI TEKNOLOGI MARA. Downloaded on November 03,2023 at 15:47:40 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Smart Systems and Inventive Technology (ICSSIT-2022)
IEEE Xplore Part Number: CFP22P17-ART; ISBN: 978-1-6654-0118-0

The QR generated will be secured and end to end 4.IMPLEMENTATION


encrypted. All the details of the passenger will be
stored in the database. The complete User's CLIENT INTERFACE
information will be stored in the server's database.
To communicate with the Users, the Server must For encryption AES Algorithm will be used. AES
first create a connection. Each User's activity will algorithm is efficient ensuring better security.
be updated in the Server's database. Before any The user’s detail will be stored in the database in
user may access the Application, the Server will the encrypted format. Decryption will be done at
verify their identity. The Server will keep track of receiver’s end i.e. Ticket Checker’s end. Along
all of the User's information in its database and, if with ticket generation ticket checking is also very
necessary, validate it. important. As a result, digital ticket checking will
be extremely useful for 100% ticket verification.
Users register themselves at Client end, and the
scanning or verification is done entirely at Ticket
Checker’s end. QR Code generation takes place
at User’s end whereas QR Code verification is
done at Ticket Checker’s end, ensure data
security while sending the data.Python language
is used for designing client’s end.Python modules
like tkinter is used for GUI and Crypto module is
used for Encryption.

Step 1: Users accesses the GUI


Step 2: Fill their travel details along with Aadhaar
id
Step 3: After filling all the details users submit
their details
Step 4: After submitting data encryption is done at
the backend
Step 5: After data encryption data is stored in the
database
Step 6: Now the users have to make their payment
depending upon their destination
Step 7: After payment is done secure QR code
Fig. 3(b) Working at Ticket Checker’s End will be generated by the system
(Scanning)

System provides end to end encryption which


will make the QR code more secure and will be
accessible to authorized user only. The
architecture is entirely based on client-server
architecture, where Users register themselves at
Client end, and the scanning or verification is
done entirely on verification end. QR Code
generation takes place at User’s end whereas QR
Code verification is done at Ticket Checker’s end,
ensure data security while sending the data. Seat
no, Passenger ID, Train no., source and
destination are the parameters through which
registration will be done on client end. The
system demonstrates the implementation of
information security with the use of encryption Fig.4(a) AES Encryption algorithm for
and decryption through AES algorithm. encryption and decryption

978-1-6654-0118-0/22/$31.00 ©2022 IEEE 203


Authorized licensed use limited to: UNIVERSITI TEKNOLOGI MARA. Downloaded on November 03,2023 at 15:47:40 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Smart Systems and Inventive Technology (ICSSIT-2022)
IEEE Xplore Part Number: CFP22P17-ART; ISBN: 978-1-6654-0118-0

Fig. 4(b) QR Code algorithm working

Fig. 4(e) Database

VERIFICATION INTERFACE

At the Ticket Checker’s end a mobile application


is designed to scan the encrypted QR code.
Android studio is used to design the android
application using java programming.On
decryption the information about the passenger
can be viewed and verified. The checker and the
passenger both will get a message that the ticket
has been checked and verified.The ticket will be
verified by the ticket checker in this manner. This
approach ensures that the huge number of tickets
Fig. 4(c) User Interface for filling ticket details are examined in the shortest amount of time. The
main goal of this project is to provide not only
railway ticket reservation but also 100% ticket
checking, as well as a new innovation for
efficient ticket checking in the shortest amount of
time with the least amount of interruption and at
the user's convenience.
Step 1: Ticket Checker is having a QR scanner
device which has access to database

Step 2: Ticket Checker scans the QR code ticket


shown by the passenger
Step 3: After scanning data is decrypted at the
backend
Step 4: Verification of passenger travel details by
the Ticket Checker
Fig. 4(d) Encrypted QR Code Ticket

978-1-6654-0118-0/22/$31.00 ©2022 IEEE 204


Authorized licensed use limited to: UNIVERSITI TEKNOLOGI MARA. Downloaded on November 03,2023 at 15:47:40 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Smart Systems and Inventive Technology (ICSSIT-2022)
IEEE Xplore Part Number: CFP22P17-ART; ISBN: 978-1-6654-0118-0

5.CONCLUSION

QR-Code implements the use of mechanisms


which can be further integrated to public
transport ticketing system thus providing
contactless transactions reliably, improved
efficiency along with simplicity. Contactless
infrastructures using encryption algorithm is
implemented through our proposed application
will be helpful for passengers and naive users as
well as professionals. Android application which
will be used for the checking a ticket and it will
make it easy for ticket checker to check whether
ticket is valid or invalid. With the use of QR
codes the problems for ticket reservations system
are overcome. The implementation of this project
enables to develop a QR code based ticketing
system which will make verification become
Fig.4(f) Android App for scanning easy. The Ticket details will be encrypted and
Encrypted QR ticket stored in the database. The ticket checker can
verify the passenger’s ticket easily.

REFERENCES

[1] Riccardo Focardi,Flaminia L. Luccio,Heider A.M.


Wahsheh,”Usable Security or QR Code”,2019,Elsevier
[2] D.Beulah Pretty,“Online ticket booking using secured QR
Code”, DECEMBER 2018, IJRESM
[3] Kajal Hargunani,Pranita Kengar,Maghana Lokhande,Rishal
Gawade,Sunil Kumar More “Integrated Bus System Using
QR Code”,APRIL 2019,IEEE
[4] Sunil Mhamane, Pranav Shriram, “Digirail - T he Digital
Railway System and Dynamic Seat Allocation”,
FEBRUARY 2019,IEEE
[5] Nishant Goel, Ajay Sharma,Sudhir Goswami, “A way to
secure a QR code”,DECEMBER 2018,IEEE
[6] Shakya, Subarana. "An efficient security framework for data
migration in a cloud computing environment." Journal of
Artificial Intelligence 1, no. 01 (2019): 45-53
[7] Sivakumar, P., NandhaKumar, M., Jayaraj, R., & Kumaran,
A. S.” Securing Data and Reducing the T ime T raffic Using
AES Encryption with Dual Cloud”,2019, IEEE
[8] Chatterjee, Runa, Rajdeep Chakraborty, and J. K. Mondal
“Design of Lightweight Cryptographic Model for End-to-End
Encryption in IoT Domain” IRO Journal on Sustainable
Wireless Systems 1, no. 4 (2019): 215-224
[9] V. Susukailo and Y. Lakh, "Access Control System Based on
Encryption in QR-Code T echnology," 2018,IEEE
Fig. 4(g) Android Application for [10] Adesh Jamnik,Munna Sahare,Sanjana Kamble,Nikesh
Scanning QR ticket Kale,Mayur Bhadade,Dr.Shrikant V. Sonekar “Digital Ticket
Booking and Checking Using Aadhaar Card or Fingerprint
and Android Application”, FEBRUARY 2020 ,IEEE
[11] Asri Nuhi, Agon Memeti, Florinda Imeri, and Betim Cico.
"Smart attendance system using qr code.", 2020, IEEE

978-1-6654-0118-0/22/$31.00 ©2022 IEEE 205


Authorized licensed use limited to: UNIVERSITI TEKNOLOGI MARA. Downloaded on November 03,2023 at 15:47:40 UTC from IEEE Xplore. Restrictions apply.
Proceedings of the Fourth International Conference on Smart Systems and Inventive Technology (ICSSIT-2022)
IEEE Xplore Part Number: CFP22P17-ART; ISBN: 978-1-6654-0118-0

[12] A. T . Arief, W. Wirawan and Y. K. Suprapto, [14] Mhamane, Sunil, and Pranav Shriram. "Railway T icket
"Authentication of Printed Document Using Quick Response Verification and Dynamic seat Allocation using Aadhar
(QR) Code," 2019,IEEE Card." 2018, IEEE
[13] A. A. Ahmed, O. Ismael Al-Sanjary and S. Kaeswaren, [15] Kazi, Sanam, Murtuza Bagasrawala, Farheen Shaikh, and
"Reserve Parking and Authentication of Guest Using QR Anamta Sayyed. "Smart e-ticketing system for public
Code," 2020, IEEE transport bus." 2018,IEEE

978-1-6654-0118-0/22/$31.00 ©2022 IEEE 206


Authorized licensed use limited to: UNIVERSITI TEKNOLOGI MARA. Downloaded on November 03,2023 at 15:47:40 UTC from IEEE Xplore. Restrictions apply.

You might also like