pad_utils 1.9.1 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pad_utils/version.rb +1 -1
- data/lib/pad_utils.rb +14 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d5fba0204ba064f38f4360292e38fceffc180f5
|
4
|
+
data.tar.gz: 1237b4dccf91136ae5f09159d2b118ad464b637d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89c62f39ebb1cd2bdf788e11b04a1df84dc09e5cc0e86aa37940f28efdaaa11a9f3510ca26f21461404a5580d0e1b258d992bb8b49c2b46c3965ccc27dea80bb
|
7
|
+
data.tar.gz: 828b14c1f37a80296995d513c986ad8cd29ceeb15463418ef8fa523e683e9cf3ef371293ff5330484384bd40c7e3b36871a11f53de0256b90b43d29562af781f
|
data/lib/pad_utils/version.rb
CHANGED
data/lib/pad_utils.rb
CHANGED
@@ -21,6 +21,20 @@ module PadUtils
|
|
21
21
|
def self.main(arg)
|
22
22
|
if arg[0] == '-u'
|
23
23
|
PadUtils.puts_c PadUtils.uuid, :blue
|
24
|
+
elsif arg[0] == '-e'
|
25
|
+
if arg[1].nil? || arg[2].nil?
|
26
|
+
puts
|
27
|
+
PadUtils.puts_c "padutils -e <word to encrypt> <encryption key>"
|
28
|
+
else
|
29
|
+
PadUtils.puts_c PadUtils.encrypt content: arg[1], key: arg[2]
|
30
|
+
end
|
31
|
+
elsif arg[0] == '-d'
|
32
|
+
if arg[1].nil? || arg[2].nil?
|
33
|
+
puts
|
34
|
+
PadUtils.puts_c "padutils -d <string to decrypt> <encryption key>"
|
35
|
+
else
|
36
|
+
PadUtils.puts_c PadUtils.decrypt content: arg[1], key: arg[2]
|
37
|
+
end
|
24
38
|
else
|
25
39
|
help
|
26
40
|
end
|