ssssh 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/ssssh +4 -3
- data/lib/ssssh/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 23eb7b25078c4af4d14c7ef59c3366e40eae5d99
|
4
|
+
data.tar.gz: 050e566380878c09ce4a2a74f6e1c83fc9068ecb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c19b31c112c0ad59272113e256c3ceca76ab8de5e25b72aee39ad96ce5c60df6f9989e0a9ef5a6e2259243d3d3a2b6fda358607e04aac0c0e04c45af48f05d0b
|
7
|
+
data.tar.gz: 6bf22c5db5886e9dad3afa23d98c4b69b8ca5b67268ac7b18a4efa4d61b0db893fbbee18ee82c732add8bd699208e60cf915b898e427fb891b29df7e2b3db020
|
data/README.md
CHANGED
@@ -12,7 +12,7 @@ Later, you can decrypt them:
|
|
12
12
|
|
13
13
|
ssssh decrypt < secrets.encrypted > secrets.txt
|
14
14
|
|
15
|
-
KEY-ID
|
15
|
+
KEY-ID can be the id or ARN of a KMS master key, or alias prefixed by "alias/". See document on [Encrypt](http://docs.aws.amazon.com/kms/latest/APIReference/API_Encrypt.html) for more details.
|
16
16
|
|
17
17
|
Naturally, suitable AWS credentials must be provided (via environment variables, command-line options, or EC2 instance profile).
|
18
18
|
|
data/bin/ssssh
CHANGED
@@ -29,11 +29,11 @@ Clamp do
|
|
29
29
|
exit 0
|
30
30
|
end
|
31
31
|
|
32
|
-
subcommand "encrypt", "Encrypt
|
32
|
+
subcommand "encrypt", "Encrypt" do
|
33
33
|
|
34
34
|
option "--[no-]wrap", :flag, "wrap encrypted data", :default => true
|
35
35
|
|
36
|
-
parameter "KEY_ID", "KMS key
|
36
|
+
parameter "KEY_ID", "KMS key or alias"
|
37
37
|
parameter "[PLAINTEXT]", "plaintext", :default => "STDIN"
|
38
38
|
|
39
39
|
def execute
|
@@ -50,11 +50,12 @@ Clamp do
|
|
50
50
|
|
51
51
|
end
|
52
52
|
|
53
|
-
subcommand "decrypt", "Decrypt
|
53
|
+
subcommand "decrypt", "Decrypt" do
|
54
54
|
|
55
55
|
parameter "[CIPHERTEXT]", "encoded ciphertext", :default => "STDIN"
|
56
56
|
|
57
57
|
def execute
|
58
|
+
return if ciphertext.empty?
|
58
59
|
puts decrypt(Base64.decode64(ciphertext))
|
59
60
|
end
|
60
61
|
|
data/lib/ssssh/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ssssh
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|