uhide 0.0.32 → 0.0.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/uhide +6 -5
- data/lib/uhide/main.rb +5 -21
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce9452809c6b83efc0a90355a5ca5b3e4662dd4d07c095399b345ee2c8c9f4e4
|
4
|
+
data.tar.gz: 1d2d1b702491a2bd4400267c57d7ecfe14f7fd72fffc8505a061d805c13f91c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1a55ba657fff14914f0db0579bd50d2282f45dd8da9b4691c4806af0a05f3f5112e674f1d76b6fb9a934466dc8bf4e00f25fadea5304a19c884cd5335e401c2a
|
7
|
+
data.tar.gz: abba5652661fd5c6eddb853001d3d8f2e1d9da747690c1030b2231ea2f7f6ee9b0a4710d6fc22baf15a1039f1cd9583ab2cb8cbc289d0ad30351fc39c52b582b
|
data/bin/uhide
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
require 'optparse'
|
2
2
|
require 'uhide'
|
3
3
|
|
4
|
-
OptionParser.new do
|
5
|
-
📋.on
|
6
|
-
puts
|
4
|
+
OptionParser.new do | 📋 |
|
5
|
+
📋.on '-h', '--help', 'Help' do | 📚 |
|
6
|
+
puts <<-📓
|
7
7
|
Usage: uhide command [key-name] [key-value]
|
8
8
|
Example: uhide set gmail mysecurepassword123
|
9
9
|
Example: uhide get gmail
|
@@ -11,13 +11,14 @@ Example: uhide get gmail
|
|
11
11
|
Get Started:
|
12
12
|
|
13
13
|
1. run `uhide`
|
14
|
-
2. You will see
|
14
|
+
2. You will see a 🔑 prompt. Type a password you can remember and press enter.
|
15
15
|
3. You can now run commands. Next time you run `uhide` from this directory, enter the same password to manage your sensitive information.
|
16
|
+
4. Uhide stores encrypted data inside whatever directory you run it from.
|
16
17
|
|
17
18
|
Commands and Optional Arguments:
|
18
19
|
- get [key-name]
|
19
20
|
- set [key-name] [key-value]
|
20
|
-
|
21
|
+
📓
|
21
22
|
exit!
|
22
23
|
end
|
23
24
|
|
data/lib/uhide/main.rb
CHANGED
@@ -1,19 +1,11 @@
|
|
1
|
-
$‼️🔑 = 'invalid key'.colorize(:magenta)
|
2
|
-
$‼️👾 = 'unsupported'.colorize(:magenta) + ' 👾'
|
3
|
-
|
4
1
|
class Uhide::Main
|
5
2
|
@@☔ = " ☔ > "
|
6
3
|
@@🔑 = " 🔑 > "
|
7
4
|
@@🗄️ = {}
|
8
5
|
|
9
6
|
class << self
|
10
|
-
def
|
11
|
-
|
12
|
-
end
|
13
|
-
|
14
|
-
def 📏
|
15
|
-
🗃️ '📏', ActiveSupport::MessageEncryptor.key_len
|
16
|
-
end
|
7
|
+
def ‼️ ❗; ❗.colorize :magenta; end
|
8
|
+
def 🧂; 🗃️ '🧂', SecureRandom.random_bytes; end
|
17
9
|
|
18
10
|
def 🚽
|
19
11
|
print "\r"
|
@@ -48,7 +40,7 @@ class Uhide::Main
|
|
48
40
|
|
49
41
|
def 💾
|
50
42
|
⚛️ = ActiveSupport::MessageEncryptor.new(
|
51
|
-
ActiveSupport::KeyGenerator.new(@@✍️).generate_key
|
43
|
+
ActiveSupport::KeyGenerator.new(@@✍️).generate_key 🧂, ActiveSupport::MessageEncryptor.key_len
|
52
44
|
)
|
53
45
|
|
54
46
|
🥾 = !(not @@🗄️['〽️'])
|
@@ -86,7 +78,7 @@ class Uhide::Main
|
|
86
78
|
begin
|
87
79
|
📖 = ⚛️.decrypt_and_verify 📕
|
88
80
|
rescue ActiveSupport::MessageVerifier::InvalidSignature
|
89
|
-
puts
|
81
|
+
puts ‼️ 🔑
|
90
82
|
exit!
|
91
83
|
end
|
92
84
|
|
@@ -123,16 +115,8 @@ class Uhide::Main
|
|
123
115
|
when :help
|
124
116
|
puts "For help, quit and run `uhide -h` from your shell"
|
125
117
|
|
126
|
-
when :reset
|
127
|
-
if ❓(@@🔑, 😐: false) == @@✍️
|
128
|
-
['〽️', '🧂', '📏'].each_entry { | 📂 | File.delete "./#{📂}" }
|
129
|
-
exit!
|
130
|
-
else
|
131
|
-
puts $‼️🔑
|
132
|
-
end
|
133
|
-
|
134
118
|
else
|
135
|
-
puts
|
119
|
+
puts ‼️('unsupported') + ' 👾'
|
136
120
|
end
|
137
121
|
|
138
122
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uhide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Keen
|
@@ -66,8 +66,7 @@ dependencies:
|
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.2.5
|
69
|
-
description:
|
70
|
-
at rest
|
69
|
+
description: "☂️ Personal encryption fit for a spy"
|
71
70
|
email: mwk@mikekeen.com
|
72
71
|
executables:
|
73
72
|
- uhide
|
@@ -101,5 +100,5 @@ requirements: []
|
|
101
100
|
rubygems_version: 3.2.0.rc.1
|
102
101
|
signing_key:
|
103
102
|
specification_version: 4
|
104
|
-
summary:
|
103
|
+
summary: Powered by emoji technology, this encrypted text store is a cut above.
|
105
104
|
test_files: []
|