SlideShare a Scribd company logo
International Journal of Trend in Scientific Research and Development (IJTSRD)
Volume 3 Issue 6, October 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470
@ IJTSRD | Unique Paper ID – IJTSRD28096 | Volume – 3 | Issue – 6 | September - October 2019 Page 448
Time Performance Analysis of RSA and
Elgamal Public-Key Cryptosystems
Kyaw Myo Thu1, Kyaw Swar Hlaing1, Nay Aung Aung2
1Assistant Lecturer, Faculty of Computer System and Technology,
Myanmar Institute of Information Technology, Mandalay Myanmar
2Lecturer, Information Technology Support and Maintenance Department,
University of Computer Studies, Mandalay, Myanmar
ABSTRACT
Computer and network security system are needed to protect data during
their transmissions and to guarantee that data are authentic. Cryptography is
useful not only for proving data to be secure but also for ensuring that data
have not altered. So, it is needed to implement the public key cryptosystem in
computer and network security system. In cryptography, symmetric key
cryptosystems are faster than public key (asymmetric) cryptosystems. But
public key cryptosystems are more secure than symmetrickeycryptosystems
and widely used in computer and network security system. This describesthe
comparison of RSA (Rivest, Shame, Adelman) public key cryptosystem and
ElGamal public key cryptosystem. RSA public key cryptosystem is faster than
ElGamal in encryption and decryption. This paper also describes the
encryption/decryption time comparison of RSA and ElGamal.
KEYWORDS: cryptography, encryption, decryption, RSA and ElGamal
How to cite this paper: Kyaw Myo Thu |
Kyaw Swar Hlaing | Nay Aung Aung"Time
Performance Analysis of RSA andElgamal
Public-Key
Cryptosystems"
Published in
International
Journal of Trend in
Scientific Research
and Development
(ijtsrd), ISSN: 2456-
6470, Volume-3 |
Issue-6, October 2019, pp.448-450, URL:
https://www.ijtsrd.com/papers/ijtsrd28
096.pdf
Copyright © 2019 by author(s) and
International Journal ofTrendinScientific
Research and Development Journal. This
is an Open Access article distributed
under the terms of
the Creative
CommonsAttribution
License (CC BY 4.0)
(http://creativecommons.org/licenses/by
/4.0
I. INTRODUCTION
Cryptography is the science of using mathematicstoencrypt
and decrypt data. Cryptography enables to store sensitive
information or transmititacrossinsecurenetworkssothatit
cannot be read by anyone except the intended recipient. The
origin of the word cryptography derivedfromancientGreek.
The word cryptography is made up of two components:
“kryptos”, which means hidden and “logos” which means
word.
There are two types of key based algorithms: symmetric
(conventional) key algorithm and asymmetric (public) key
algorithm. In symmetric key algorithms, the encryption key
can be calculated from the decryption key and vice versa. In
most symmetric algorithms, the encryption key and the
decryption are the same. A public key cryptosystem is an
asymmetric cryptosystem where the key is secret is
constructed of a public key and a private key. The public key
can be uses to encrypt messages. Only a person that has the
corresponding private key can decrypt the messages.
RSA is one of the oldest and most widely used public key
cryptosystems. It was the first algorithm knows to be
suitable for signing as well as encryption and one of the first
great advances in public key cryptography. It is still widely
used in electronic commerce protocols, and is believed to be
secure given sufficiently by multiplication of two very large
primes. In practice, RSA has proved to be quite slow,
especially the key generation algorithm. But RSA public key
algorithm is faster than ElGamal public key algorithm.
Because ElGamal is also based on prime number and it
produces two ciphertext at the encryption process.
II. PROPOSED SYSTEM FRAMEWORK
In this section, our proposed system framework for the
comparison of RSA and ElGamal public key cryptosystemsis
present. In Figure 1, an overview of our proposed systems
for encryption process is described. In the encryption
process the plaintext (text, image and audio) is encrypted
with public key for RSA and ElGamal. Finally this system
shows the comparison of encryption time for these two
algorithms.
IJTSRD28096
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD28096 | Volume – 3 | Issue – 6 | September - October 2019 Page 449
Figure.1 Blog diagram for encryption process
The decryption process is shown in Figure 2. In decryption
process, the private key is use for both algorithms.
Figure.2 Blog diagram for decryption process
III. BACKGROUND THEORY
A. Rivest-Sharmir-Adleman (RSA) Algorithm
RSA algorithm is used for publickeyencryption.Thesecurity
of RSA is based on factoring integers. RSA laboratories
currently recommend key sizes of 1024 bits for corporate
use and 2048 bits for extremely valuable keys like the root
key pair used by a certifying authority. RSA involves two
keys, public key and private key. The public key is known to
everyone and is used to encrypt message. The private key is
kept secret form knowing everyone except owner. The
messages can only be decrypted by use of the private.
Anybody can encrypt a message, but only the holder of a
private key can actually decrypt the message and read it.
RSA encryption scheme can be divided into three stages:
Key Generation Stage
RSA public key and private key can be generated by the
following procedure. Choose two random prime number p
and q such that p and q are not equal.
Compute n such that n = p * q.
Compute Φ (n) such that Φ (n) = (p-1) (q-1).
Choose a random integer e, e< Φ (n) and
gcd (e, Φ (n))= 1 that e*d=1 modulo Φ (n).
[n,e] is private key .
[n,d] is public key.
Encryption Stage
Person A transmits public key n & e to person B and keeps
the private key secret.
B then wishes to send message M to A.
B first turns M into a number, such that M<n.
B then computes the cipher text C = Me mod n.
B then transmits C to A.
Decryption Stage
Person A can recover message M from C by using the private
key d and n.
Decrypted value = C d mod n.
Given decrypted value, A can recover the message M.
B. ElGamal Algorithm
The ElGamal encryption system is an asymmetric key
encryption algorithm for public-key cryptography which is
based on the Diffie–Hellman key exchange. It was described
by Taher Elgamal in 1984. ElGamal encryption is used in the
free GNU Privacy Guard software, recent versions of PGP,
and other cryptosystems.
ElGamal encryption scheme can be dividedintothreestages:
Key Generation Stage
International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470
@ IJTSRD | Unique Paper ID – IJTSRD28096 | Volume – 3 | Issue – 6 | September - October 2019 Page 450
Encryption Stage
Decryption Stage
IV. COMPARISON OF RSA AND ELGAMAL
In this system, the testing results for encryption processing
time of text files are shown in Table 1.
Size(KB) RSA(Second) ElGamal(Second)
1K 0.15 0.66
2K 0.18 0.69
3K 0.22 0.75
4K 0.25 0.77
5K 0.28 0.81
The testing results for decryption processing time of text
files are shown in Table 2.
Size(KB) RSA(Second) ElGamal(Second)
1K 0.846 0.877
2K 0.860 0.885
3K 0.875 0.890
4K 0.888 0.903
5K 0.898 0.911
The testing results for encryption processing time of image
files and audio files are shown in Table 3.
Size(KB) RSA(Second) ElGamal(Second)
5K(JPG) 0.31 1.092
12K(JPG) 0.55 2.52
14K(JPG) 0.68 2.85
242K(mp3) 0.955 3.342
312K(mp3) 1.32 4.081
The testing results for decryption processing time of image
files and audio files are shown in Table 4.
Size(KB) RSA(Second) ElGamal(Second)
5K(JPG) 2.03 4.664
12K(JPG) 3.01 6.324
14K(JPG) 3.723 7.45
242K(mp3) 23.645 40.877
312K(mp3 30.231 42.902
According to the testing results, RSA is about 4 times faster
than ElGamal at the encryption process. In the decryption,
RSA is also faster than Elgamal.
V. FUTURE WORK
The cryptography is widely used for data and messages
security in network and computer system. This system can
be extended to the secure application of the business and
organization that used the Internet such as e-Commerce, e-
Banking, e-Mail and military and so on.
VI. Conclusion
The two implemented systems RSAandElGamal aresuitable
for applications where it requires security based on the
environment. This thesis shows the (encryption and
decryption) time for RSA and ElGamal public key
cryptosystems. The RSA encryption and decryptiontimeare
significantly faster than the ElGamal. RSA is ideally suitable
for applications where high performance and high security.
REFERENCES
[1] D. Kahn, the Code breakers: The comprehensive
History of Secret Communication from Ancient to the
internet, Published 1967.
[2] AL. Jeeva, Dr. V. Palanisamy, K. Kanagaram,
“Comparative analysis of performance efficiency and
security measures of some encryption algorithms”,
volume 2, Issue 3, May-June 2012, pp.3033-3037 in
International Journal of Engineering Research and
Applications (IJERA) ISSN.
[3] S. Inshi and A. Youssef, “Design and Implementation of
an Online Anonymous Feedback System,” in
communications, 2008 24th Bi-ennial Symposium on,
2008, pp.58-61.
[4] Tzvetalin S. Vassilev,Andrew Twizell,“Cryptography:A
Comparison of Public Key Systems”, 2012, 1(5): 31-42.
[5] Alese, B. K., Philemon E. D, Falaki, S. O, “Comparative
Analysis of Public Key Encryption Schemes”, 2012,
2049-3444.
[6] Challa Narasimham, Jataram Pradhan: “Evaluation of
Performance Characteristics of Cryptosystem Using
Text Files”, 2008 JATIT.
[7] Shahzadi Farah, M.Younas Javed, Azra Ahamim,
Tabassam Nawaz, “An Experimental Study on
Performance Evaluation of Asymmetric Encryption
Algorithms”, 987-1-61804-140-1.
[8] Mohit Marwaha, Rajeev Bedi, Amritpal Singh, Tejinder
Singh: “Comparative Analysis of Cryptographic
Algorithms”, July-Sept., 2013/16-18.
[9] W. Diffie and M. Hellman, “New directions in
cryptography”, IEEE Transactions on Information
Theory, 22 (1976) 644-654.
[10] T. ElGamal, “A PublicKeyCryptosystemanda signature
scheme based on discrete lagarithms”, IEEE
Transactions on Information Throry, volume31,pages
469-492, 1985.
[11] R. L. Rivest, A. Shamir, L. Adleman: “A method for
obtaining digital signatures and Public-Key
Cryptosystems”, Communications of the ACM 21
(1978), 120-126.
[12] W. Mao, Modern cryptography: theory and practice:
Prentice Hall Professional Technical Reference, 2003.

More Related Content

PDF
RSA and RC4 Cryptosystem Performance Evaluation Using Image and Text
PDF
IRJET- Data Transmission using RSA Algorithm
PDF
PDF
IRJET- Comparison Among RSA, AES and DES
PDF
Image Cryptography using RSA Algorithm
PDF
50120140507006
PDF
A Survey on Generation and Evolution of Various Cryptographic Techniques
PDF
IRJET- Message Encryption using Hybrid Cryptography
RSA and RC4 Cryptosystem Performance Evaluation Using Image and Text
IRJET- Data Transmission using RSA Algorithm
IRJET- Comparison Among RSA, AES and DES
Image Cryptography using RSA Algorithm
50120140507006
A Survey on Generation and Evolution of Various Cryptographic Techniques
IRJET- Message Encryption using Hybrid Cryptography

What's hot (20)

PDF
Quantum Cryptography Approach for Resolving Cyber Threats
PDF
Security analysis of fbdk block cipher for digital images
PDF
State of the art realistic cryptographic
PDF
Encryption Data Measurement and Data Security of Hybrid AES and RSA Algorithm
PDF
IRJET- Schemes for Securing Cloud Data when the Cryptographic Material is Exp...
PDF
IRJET- Secure File Storage on Cloud using Cryptography
PDF
Design of Hybrid Cryptography Algorithm for Secure Communication
PDF
Chaotic Rivest-Shamir-Adlerman Algorithm with Data Encryption Standard Schedu...
PDF
IRJET- Cryptography Encryption and Decryption File Protection based on Mo...
PDF
Advanced Encryption Standard (AES) Implementaion using Java
PDF
Ew25914917
PDF
Prevention of Cheating Message based on Block Cipher using Digital Envelope
PDF
Improving Network Security by Modifying RSA Algorithm
PDF
Secure key exchange thrtough elgamal cryptography in ad hoc networks ijser fo...
PDF
561 1530-1-pb (1)
PDF
Data Encryption and Decryption using Hill Cipher
PDF
State of the art parallel approaches for
PDF
Enhancing the Techniques to Secure Grid Computing
PDF
Ijetcas14 355
PDF
Implementation of-hybrid-cryptography-algorithm
Quantum Cryptography Approach for Resolving Cyber Threats
Security analysis of fbdk block cipher for digital images
State of the art realistic cryptographic
Encryption Data Measurement and Data Security of Hybrid AES and RSA Algorithm
IRJET- Schemes for Securing Cloud Data when the Cryptographic Material is Exp...
IRJET- Secure File Storage on Cloud using Cryptography
Design of Hybrid Cryptography Algorithm for Secure Communication
Chaotic Rivest-Shamir-Adlerman Algorithm with Data Encryption Standard Schedu...
IRJET- Cryptography Encryption and Decryption File Protection based on Mo...
Advanced Encryption Standard (AES) Implementaion using Java
Ew25914917
Prevention of Cheating Message based on Block Cipher using Digital Envelope
Improving Network Security by Modifying RSA Algorithm
Secure key exchange thrtough elgamal cryptography in ad hoc networks ijser fo...
561 1530-1-pb (1)
Data Encryption and Decryption using Hill Cipher
State of the art parallel approaches for
Enhancing the Techniques to Secure Grid Computing
Ijetcas14 355
Implementation of-hybrid-cryptography-algorithm
Ad

Similar to Time Performance Analysis of RSA and Elgamal Public Key Cryptosystems (20)

PPTX
Cyber_--Security_Presentation_FIXED.pptx
PPTX
Cyber Security PowerPoint Templates (1).pptx
PDF
Ijetcas14 336
PPTX
RSA Algorithem and information about rsa
PDF
Ch34508510
PDF
A Literature Review of Some Modern RSA Variants
PPT
PUBLIC KEY & RSA.ppt
PPT
PPT
Public key cryptography and RSA algorithm
PPT
ch09-Critt.Asimettrica.notes has good info in security
PPT
ch09_rsa_nemo.ppt
PDF
RSA 32-bit Implementation Technique
PPTX
Public key algorithm
PPT
RSA Algorithm - Public Key Cryptography
PDF
RSA Cryptosystem using Python
PPT
Rsa diffi-network security-itt
PPT
Unit --3.ppt
PDF
MAT255_Final_Paper_RSA_Encryption
Cyber_--Security_Presentation_FIXED.pptx
Cyber Security PowerPoint Templates (1).pptx
Ijetcas14 336
RSA Algorithem and information about rsa
Ch34508510
A Literature Review of Some Modern RSA Variants
PUBLIC KEY & RSA.ppt
Public key cryptography and RSA algorithm
ch09-Critt.Asimettrica.notes has good info in security
ch09_rsa_nemo.ppt
RSA 32-bit Implementation Technique
Public key algorithm
RSA Algorithm - Public Key Cryptography
RSA Cryptosystem using Python
Rsa diffi-network security-itt
Unit --3.ppt
MAT255_Final_Paper_RSA_Encryption
Ad

More from ijtsrd (20)

PDF
A Study of School Dropout in Rural Districts of Darjeeling and Its Causes
PDF
Pre extension Demonstration and Evaluation of Soybean Technologies in Fedis D...
PDF
Pre extension Demonstration and Evaluation of Potato Technologies in Selected...
PDF
Pre extension Demonstration and Evaluation of Animal Drawn Potato Digger in S...
PDF
Pre extension Demonstration and Evaluation of Drought Tolerant and Early Matu...
PDF
Pre extension Demonstration and Evaluation of Double Cropping Practice Legume...
PDF
Pre extension Demonstration and Evaluation of Common Bean Technology in Low L...
PDF
Enhancing Image Quality in Compression and Fading Channels A Wavelet Based Ap...
PDF
Manpower Training and Employee Performance in Mellienium Ltdawka, Anambra State
PDF
A Statistical Analysis on the Growth Rate of Selected Sectors of Nigerian Eco...
PDF
Automatic Accident Detection and Emergency Alert System using IoT
PDF
Corporate Social Responsibility Dimensions and Corporate Image of Selected Up...
PDF
The Role of Media in Tribal Health and Educational Progress of Odisha
PDF
Advancements and Future Trends in Advanced Quantum Algorithms A Prompt Scienc...
PDF
A Study on Seismic Analysis of High Rise Building with Mass Irregularities, T...
PDF
Descriptive Study to Assess the Knowledge of B.Sc. Interns Regarding Biomedic...
PDF
Performance of Grid Connected Solar PV Power Plant at Clear Sky Day
PDF
Vitiligo Treated Homoeopathically A Case Report
PDF
Vitiligo Treated Homoeopathically A Case Report
PDF
Uterine Fibroids Homoeopathic Perspectives
A Study of School Dropout in Rural Districts of Darjeeling and Its Causes
Pre extension Demonstration and Evaluation of Soybean Technologies in Fedis D...
Pre extension Demonstration and Evaluation of Potato Technologies in Selected...
Pre extension Demonstration and Evaluation of Animal Drawn Potato Digger in S...
Pre extension Demonstration and Evaluation of Drought Tolerant and Early Matu...
Pre extension Demonstration and Evaluation of Double Cropping Practice Legume...
Pre extension Demonstration and Evaluation of Common Bean Technology in Low L...
Enhancing Image Quality in Compression and Fading Channels A Wavelet Based Ap...
Manpower Training and Employee Performance in Mellienium Ltdawka, Anambra State
A Statistical Analysis on the Growth Rate of Selected Sectors of Nigerian Eco...
Automatic Accident Detection and Emergency Alert System using IoT
Corporate Social Responsibility Dimensions and Corporate Image of Selected Up...
The Role of Media in Tribal Health and Educational Progress of Odisha
Advancements and Future Trends in Advanced Quantum Algorithms A Prompt Scienc...
A Study on Seismic Analysis of High Rise Building with Mass Irregularities, T...
Descriptive Study to Assess the Knowledge of B.Sc. Interns Regarding Biomedic...
Performance of Grid Connected Solar PV Power Plant at Clear Sky Day
Vitiligo Treated Homoeopathically A Case Report
Vitiligo Treated Homoeopathically A Case Report
Uterine Fibroids Homoeopathic Perspectives

Recently uploaded (20)

PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Insiders guide to clinical Medicine.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
Lesson notes of climatology university.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PPTX
Institutional Correction lecture only . . .
PPTX
GDM (1) (1).pptx small presentation for students
O5-L3 Freight Transport Ops (International) V1.pdf
Microbial disease of the cardiovascular and lymphatic systems
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
VCE English Exam - Section C Student Revision Booklet
FourierSeries-QuestionsWithAnswers(Part-A).pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Insiders guide to clinical Medicine.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Lesson notes of climatology university.
Module 4: Burden of Disease Tutorial Slides S2 2025
PPH.pptx obstetrics and gynecology in nursing
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Anesthesia in Laparoscopic Surgery in India
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Microbial diseases, their pathogenesis and prophylaxis
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Institutional Correction lecture only . . .
GDM (1) (1).pptx small presentation for students

Time Performance Analysis of RSA and Elgamal Public Key Cryptosystems

  • 1. International Journal of Trend in Scientific Research and Development (IJTSRD) Volume 3 Issue 6, October 2019 Available Online: www.ijtsrd.com e-ISSN: 2456 – 6470 @ IJTSRD | Unique Paper ID – IJTSRD28096 | Volume – 3 | Issue – 6 | September - October 2019 Page 448 Time Performance Analysis of RSA and Elgamal Public-Key Cryptosystems Kyaw Myo Thu1, Kyaw Swar Hlaing1, Nay Aung Aung2 1Assistant Lecturer, Faculty of Computer System and Technology, Myanmar Institute of Information Technology, Mandalay Myanmar 2Lecturer, Information Technology Support and Maintenance Department, University of Computer Studies, Mandalay, Myanmar ABSTRACT Computer and network security system are needed to protect data during their transmissions and to guarantee that data are authentic. Cryptography is useful not only for proving data to be secure but also for ensuring that data have not altered. So, it is needed to implement the public key cryptosystem in computer and network security system. In cryptography, symmetric key cryptosystems are faster than public key (asymmetric) cryptosystems. But public key cryptosystems are more secure than symmetrickeycryptosystems and widely used in computer and network security system. This describesthe comparison of RSA (Rivest, Shame, Adelman) public key cryptosystem and ElGamal public key cryptosystem. RSA public key cryptosystem is faster than ElGamal in encryption and decryption. This paper also describes the encryption/decryption time comparison of RSA and ElGamal. KEYWORDS: cryptography, encryption, decryption, RSA and ElGamal How to cite this paper: Kyaw Myo Thu | Kyaw Swar Hlaing | Nay Aung Aung"Time Performance Analysis of RSA andElgamal Public-Key Cryptosystems" Published in International Journal of Trend in Scientific Research and Development (ijtsrd), ISSN: 2456- 6470, Volume-3 | Issue-6, October 2019, pp.448-450, URL: https://www.ijtsrd.com/papers/ijtsrd28 096.pdf Copyright © 2019 by author(s) and International Journal ofTrendinScientific Research and Development Journal. This is an Open Access article distributed under the terms of the Creative CommonsAttribution License (CC BY 4.0) (http://creativecommons.org/licenses/by /4.0 I. INTRODUCTION Cryptography is the science of using mathematicstoencrypt and decrypt data. Cryptography enables to store sensitive information or transmititacrossinsecurenetworkssothatit cannot be read by anyone except the intended recipient. The origin of the word cryptography derivedfromancientGreek. The word cryptography is made up of two components: “kryptos”, which means hidden and “logos” which means word. There are two types of key based algorithms: symmetric (conventional) key algorithm and asymmetric (public) key algorithm. In symmetric key algorithms, the encryption key can be calculated from the decryption key and vice versa. In most symmetric algorithms, the encryption key and the decryption are the same. A public key cryptosystem is an asymmetric cryptosystem where the key is secret is constructed of a public key and a private key. The public key can be uses to encrypt messages. Only a person that has the corresponding private key can decrypt the messages. RSA is one of the oldest and most widely used public key cryptosystems. It was the first algorithm knows to be suitable for signing as well as encryption and one of the first great advances in public key cryptography. It is still widely used in electronic commerce protocols, and is believed to be secure given sufficiently by multiplication of two very large primes. In practice, RSA has proved to be quite slow, especially the key generation algorithm. But RSA public key algorithm is faster than ElGamal public key algorithm. Because ElGamal is also based on prime number and it produces two ciphertext at the encryption process. II. PROPOSED SYSTEM FRAMEWORK In this section, our proposed system framework for the comparison of RSA and ElGamal public key cryptosystemsis present. In Figure 1, an overview of our proposed systems for encryption process is described. In the encryption process the plaintext (text, image and audio) is encrypted with public key for RSA and ElGamal. Finally this system shows the comparison of encryption time for these two algorithms. IJTSRD28096
  • 2. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD28096 | Volume – 3 | Issue – 6 | September - October 2019 Page 449 Figure.1 Blog diagram for encryption process The decryption process is shown in Figure 2. In decryption process, the private key is use for both algorithms. Figure.2 Blog diagram for decryption process III. BACKGROUND THEORY A. Rivest-Sharmir-Adleman (RSA) Algorithm RSA algorithm is used for publickeyencryption.Thesecurity of RSA is based on factoring integers. RSA laboratories currently recommend key sizes of 1024 bits for corporate use and 2048 bits for extremely valuable keys like the root key pair used by a certifying authority. RSA involves two keys, public key and private key. The public key is known to everyone and is used to encrypt message. The private key is kept secret form knowing everyone except owner. The messages can only be decrypted by use of the private. Anybody can encrypt a message, but only the holder of a private key can actually decrypt the message and read it. RSA encryption scheme can be divided into three stages: Key Generation Stage RSA public key and private key can be generated by the following procedure. Choose two random prime number p and q such that p and q are not equal. Compute n such that n = p * q. Compute Φ (n) such that Φ (n) = (p-1) (q-1). Choose a random integer e, e< Φ (n) and gcd (e, Φ (n))= 1 that e*d=1 modulo Φ (n). [n,e] is private key . [n,d] is public key. Encryption Stage Person A transmits public key n & e to person B and keeps the private key secret. B then wishes to send message M to A. B first turns M into a number, such that M<n. B then computes the cipher text C = Me mod n. B then transmits C to A. Decryption Stage Person A can recover message M from C by using the private key d and n. Decrypted value = C d mod n. Given decrypted value, A can recover the message M. B. ElGamal Algorithm The ElGamal encryption system is an asymmetric key encryption algorithm for public-key cryptography which is based on the Diffie–Hellman key exchange. It was described by Taher Elgamal in 1984. ElGamal encryption is used in the free GNU Privacy Guard software, recent versions of PGP, and other cryptosystems. ElGamal encryption scheme can be dividedintothreestages: Key Generation Stage
  • 3. International Journal of Trend in Scientific Research and Development (IJTSRD) @ www.ijtsrd.com eISSN: 2456-6470 @ IJTSRD | Unique Paper ID – IJTSRD28096 | Volume – 3 | Issue – 6 | September - October 2019 Page 450 Encryption Stage Decryption Stage IV. COMPARISON OF RSA AND ELGAMAL In this system, the testing results for encryption processing time of text files are shown in Table 1. Size(KB) RSA(Second) ElGamal(Second) 1K 0.15 0.66 2K 0.18 0.69 3K 0.22 0.75 4K 0.25 0.77 5K 0.28 0.81 The testing results for decryption processing time of text files are shown in Table 2. Size(KB) RSA(Second) ElGamal(Second) 1K 0.846 0.877 2K 0.860 0.885 3K 0.875 0.890 4K 0.888 0.903 5K 0.898 0.911 The testing results for encryption processing time of image files and audio files are shown in Table 3. Size(KB) RSA(Second) ElGamal(Second) 5K(JPG) 0.31 1.092 12K(JPG) 0.55 2.52 14K(JPG) 0.68 2.85 242K(mp3) 0.955 3.342 312K(mp3) 1.32 4.081 The testing results for decryption processing time of image files and audio files are shown in Table 4. Size(KB) RSA(Second) ElGamal(Second) 5K(JPG) 2.03 4.664 12K(JPG) 3.01 6.324 14K(JPG) 3.723 7.45 242K(mp3) 23.645 40.877 312K(mp3 30.231 42.902 According to the testing results, RSA is about 4 times faster than ElGamal at the encryption process. In the decryption, RSA is also faster than Elgamal. V. FUTURE WORK The cryptography is widely used for data and messages security in network and computer system. This system can be extended to the secure application of the business and organization that used the Internet such as e-Commerce, e- Banking, e-Mail and military and so on. VI. Conclusion The two implemented systems RSAandElGamal aresuitable for applications where it requires security based on the environment. This thesis shows the (encryption and decryption) time for RSA and ElGamal public key cryptosystems. The RSA encryption and decryptiontimeare significantly faster than the ElGamal. RSA is ideally suitable for applications where high performance and high security. REFERENCES [1] D. Kahn, the Code breakers: The comprehensive History of Secret Communication from Ancient to the internet, Published 1967. [2] AL. Jeeva, Dr. V. Palanisamy, K. Kanagaram, “Comparative analysis of performance efficiency and security measures of some encryption algorithms”, volume 2, Issue 3, May-June 2012, pp.3033-3037 in International Journal of Engineering Research and Applications (IJERA) ISSN. [3] S. Inshi and A. Youssef, “Design and Implementation of an Online Anonymous Feedback System,” in communications, 2008 24th Bi-ennial Symposium on, 2008, pp.58-61. [4] Tzvetalin S. Vassilev,Andrew Twizell,“Cryptography:A Comparison of Public Key Systems”, 2012, 1(5): 31-42. [5] Alese, B. K., Philemon E. D, Falaki, S. O, “Comparative Analysis of Public Key Encryption Schemes”, 2012, 2049-3444. [6] Challa Narasimham, Jataram Pradhan: “Evaluation of Performance Characteristics of Cryptosystem Using Text Files”, 2008 JATIT. [7] Shahzadi Farah, M.Younas Javed, Azra Ahamim, Tabassam Nawaz, “An Experimental Study on Performance Evaluation of Asymmetric Encryption Algorithms”, 987-1-61804-140-1. [8] Mohit Marwaha, Rajeev Bedi, Amritpal Singh, Tejinder Singh: “Comparative Analysis of Cryptographic Algorithms”, July-Sept., 2013/16-18. [9] W. Diffie and M. Hellman, “New directions in cryptography”, IEEE Transactions on Information Theory, 22 (1976) 644-654. [10] T. ElGamal, “A PublicKeyCryptosystemanda signature scheme based on discrete lagarithms”, IEEE Transactions on Information Throry, volume31,pages 469-492, 1985. [11] R. L. Rivest, A. Shamir, L. Adleman: “A method for obtaining digital signatures and Public-Key Cryptosystems”, Communications of the ACM 21 (1978), 120-126. [12] W. Mao, Modern cryptography: theory and practice: Prentice Hall Professional Technical Reference, 2003.