-
Notifications
You must be signed in to change notification settings - Fork 0
/
allForHumans.jl
102 lines (64 loc) · 1.93 KB
/
allForHumans.jl
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# Allow selection of different modules - TO DO INTEGRATE EACH MODEL INTO HERE
include("ImportModules.jl")
help = """
--- CIPHER TOOLS > ALL FOR HUMANS ---
Help - ?
Quit - Q
Install Requirements - R
ANALYSIS
| -> Cipher Identifier - [IN PROGRESS]
| -> Entropy - EN
| -> Frequency Analysis - FA
BRUTE FORCE
| -> Caesar Brute - CA
| -> Affine Brute - AF
| -> Atbash - AB
| -> ROT13 - RO
| -> Vignere - VI
| -> Baconian - BA
| -> Mono-alphabetic Substitution - MS
| -> Rail-fence - [COMING SOON]
| -> Polybius Square - [COMING SOON]
| -> Transposition - [COMING SOON]
"""
print(help)
while true
print(">> ")
text = uppercase(readline())
if text == "EN"
println("\n--- CIPHER TOOLS > ENTROPY HUMANS ---")
include("Entropyhumans.jl")
elseif text == "FA"
println("\n--- CIPHER TOOLS > FREQUENCY ANALYSIS HUMANS ---")
include("FAhumans.jl")
elseif text == "CA"
println("\n--- CIPHER TOOLS > CAESAR HUMANS ---")
include("Caesarhumans.jl")
elseif text == "AF"
println("\n--- CIPHER TOOLS > AFFINE HUMANS ---")
include("Affinehumans.jl")
elseif text == "AB"
println("\n--- CIPHER TOOLS > ATBASH HUMANS ---")
include("Atbashhumans.jl")
elseif text == "RO"
println("\n--- CIPHER TOOLS > ROT13 HUMMANS ---")
include("Rot13humans.jl")
elseif text == "VI"
println("\n--- CIPHER TOOLS > VIGNERE HUMANS ---")
include("Vignerehumans.jl")
elseif text == "BA"
println("\n--- CIPHER TOOLS > BACONIAN HUMANS ---")
include("Baconianhumans.jl")
elseif text == "MS"
println("\n--- CIPHER TOOLS > SUBSTITUTION HUMANS ---")
include("Substitutehumans.jl")
elseif text == "?"
print(help)
elseif text == "R"
include("Requirements.jl")
elseif text == "Q"
break
else
println("Not a recognised code. Type '?' for help.")
end
end