File tree Expand file tree Collapse file tree 1 file changed +74
-0
lines changed
Expand file tree Collapse file tree 1 file changed +74
-0
lines changed Original file line number Diff line number Diff line change 1+ require_relative 'lib/Decrypt.rb'
2+ require_relative 'lib/Encrypt.rb'
3+
4+
5+
6+ puts " Menu "
7+ sleep 0.2
8+ puts "---------------"
9+ puts "1. Decrypt "
10+ sleep 0.2
11+ puts "---------------"
12+ puts "2. Encrypt "
13+ sleep 0.2
14+ puts "---------------"
15+ puts "3. Exit "
16+ puts "---------------\n "
17+ sleep 0.2
18+ print "> "
19+ out = gets . chomp
20+
21+ if out == "1"
22+ # Decrypt
23+ puts "Enter Dir "
24+ print "> "
25+ input = gets . chomp
26+ input = Dir [ input +'/**/*' ]
27+ dec = Dec . new
28+ for i in input
29+ dec . cry ( i )
30+ end
31+ elsif out == "2"
32+ puts "Enter Dir "
33+ print "> "
34+ input = gets . chomp
35+ input = Dir [ input +'/**/*' ]
36+
37+ # Encrypt
38+ dec = Enc . new
39+ for i in input
40+ dec . dec ( i )
41+ end
42+ elsif out == 3
43+ exit
44+ else
45+ puts "Sorry !"
46+ end
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+
You can’t perform that action at this time.
0 commit comments