ssssh 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/bin/ssssh +4 -3
  4. data/lib/ssssh/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d86f0f69324dccca1a583a02dce9a236a0857495
4
- data.tar.gz: a6b7586228ab38c9982cc4d3774ba5d63467f1f8
3
+ metadata.gz: 23eb7b25078c4af4d14c7ef59c3366e40eae5d99
4
+ data.tar.gz: 050e566380878c09ce4a2a74f6e1c83fc9068ecb
5
5
  SHA512:
6
- metadata.gz: c2286d07099cfb4bb4381f357a4e133e0ff44f9b26df2aebd35e54619a958d1e6ead2e281413a90323886b204226b90e8ed2aaa92eebfc15abce41255bc249c0
7
- data.tar.gz: 509a0b681b545bfdcb97490c2d2b4dac10da1bc7d19d82aaa5ff4da8143f934872921dd9e8701f75f475b1f7bc4e17a157d4be8b87f322c67ac3adede5a8442c
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 must be the name or alias of an existing KMS key.
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 STDIN" do
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-id"
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 STDIN" do
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
 
@@ -1,3 +1,3 @@
1
1
  module Ssssh
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
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.0
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-06 00:00:00.000000000 Z
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