-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEncryptionTest.java
More file actions
49 lines (39 loc) · 934 Bytes
/
EncryptionTest.java
File metadata and controls
49 lines (39 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import java.util.*;
public class EncryptionTest
{
public static void main(String args[])
{
Scanner input = new Scanner(System.in);
System.out.print("Enter data to be encrypted: ");
Encryption2 e = new Encryption2(input.nextLine());
print(e);
/*
e.alphaEncrypt();
print(e);
e.betaEncrypt();
print(e);
e.gammaEncrypt();
print(e);
e.deltaEncrypt();
print(e);
*/
e.omegaEncrypt();
print(e);
/*
e.omegaDecrypt();
print(e);
e.deltaDecrypt();
print(e);
e.gammaDecrypt();
print(e);
e.betaDecrypt();
print(e);
*/
e.alphaDecrypt();
print(e);
}
private static void print(Encryption2 e)
{
System.out.printf("%s: %s \n", e.getStatus(), e);
}
}