2 ElGamal ENCRYPTION
The process of key formation is the process of deter-
mining a number which will then be used as a key
in the process of encryption and decryption of mes-
sages(Hashim, 2014). The key for encryption is gen-
erated from the p value, g, y while the decryption key
consists of the value x, p (Makkaoui et al., 2016).
each value has requirements that must be met. Rare
in making keys are as follows:
• Primes p, with p values > 255.
• Select a random number g with the condition g <
p.
• Select a random number x with the condition 1 <
x < p-2.
• Calculate y = g * x mod p.
The public key is y, g, p while the private key is
x. the value of y, g, and p is not save secret while the
value of x must be kept secret because it is a private
key to describe plaintext (Kiltz and Pietrzak, 2010;
Tsiounis and Yung, 1998; Weinberger et al., 2006).
3 RESULT AND DISCUSSION
3.1 Username Encryption Process with
ElGamal Algorithm
In this section a comparison will be made between
the ElGamal login username and the standard login
on the web login system using ElGamal cryptography,
the results of the comparison can be seen in table 1.
The process in table 1 above, is the result of the
encryption process using the ElGamal method. Below
this is the process of an ElGamal method at work.
• If the testing system uses a username: 23081990,
Number of characters: 59, Uppercase: 0, Small
letters: 0, Numbers: 8, special character: 0, Other:
15, Results: 8.81.
• If the testing system uses username: abcd1234,
Number of characters: 58, Uppercase: 0, Small
letters: 4, Numbers: 8 special character: 0, Other:
15, Result: 4,058.
• If the testing system uses username: AbCd1234,
Number of characters: 56, Upper-case: 2, Small
letters: 2, Numbers: 4, special character: 0, Other:
15, Result: 4,058.
• If the test system uses a username: Ac54$# h,
Number of characters: 50, Uppercase: 1, Small
letter: 2, Numbers: 2, Special character: 2, Other:
13, Result: 23,941.
• If the testing system uses a username: 6$ Ab788,
Number of characters: 50, Uppercase: 1, Small
letter: 1, Number: 3, Special character: 1, Other:
13, Result: 19.981.
• If the test system uses username: aaD#6754,
Number of characters: 57, Uppercase: 1, Small
letter: 2, Number: 4, special character: 1, Other:
15, Result: 4,995.
• If the testing system uses username: &*$# 9764,
Number of characters: 59, Uppercase: 0, Small
letters: 0, Number: 4, Special character: 4, Other:
15, Result: 9,313.
The process in table 2 above, is the result of the
encryption process using the standart character. Be-
low this is the process of standard login process test-
ing
• If the test system uses a username: 23081990,
Number of characters: 8, Large letters: 0, Lower
case letters: 0, Numbers: 8, character specials: 0,
Other: 0 Result: 0.
• If the testing system uses username: abcd1234,
Number of characters: 8, Large letters: 0, Lower-
case letters: 4, Numbers: 8, Special characters: 0,
Other: 0, Results: 0.13.
• If the testing system uses username: AbCd1234,
Number of characters: 8, Large letters: 2, Lower-
case letters: 2, Numbers: 4, Special characters: 0,
Other: 0, Results: 0.13.
• If the testing system uses a username: Ac54$#h,
Number of characters: 7, Large letters: 1, Lower-
case: 2, numbers: 2, special character: 2, Other:
0, Results: 0.5.
• If the testing system uses a username: 6$Ab788,
Number of characters: 7, Large letters: 1, Lower-
case: 1, Number: 3, Special characters: 1, Other:
0, Result: 0.2.
• If the testing system uses username: aaD#6754,
Number of characters: 8, Large letters: 1, Lower-
case: 2, Number: 4, Special character: 1, Other:
0, Results: 0.16.
• If the testing system uses username: &*$# 9764,
Number of characters: 8 ,Large letters: 0, Lower
case letters: 0, Numbers: 4, special character: 4,
Other: 0, Results: 0.31.
In table 1 dan 2 above can be seen the comparison
between the ElGamal login username and the stan-
dard login that has been done. Then the comparison
results will be accumulated into a graph and can be
seen in figure 1.
In Figure 1, the average time of the encryption and
decryption results of each username gets an ElGamal
Design of Web Login Security System using ElGamal Cryptography
269