passw3rd 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/passw3rd/password_service.rb +3 -3
- data/lib/passw3rd/version.rb +1 -1
- metadata +2 -2
@@ -37,8 +37,8 @@ module Passw3rd
|
|
37
37
|
uri = _parse_uri(password_file)
|
38
38
|
encoded_password = Base64.decode64(open(uri) { |f| f.read })
|
39
39
|
decrypt(encoded_password, options[:key_path])
|
40
|
-
rescue
|
41
|
-
raise ArgumentError, "Could not decrypt passw3rd file" if options[:force]
|
40
|
+
rescue => e
|
41
|
+
raise ArgumentError, "Could not decrypt passw3rd file #{password_file} - #{e}" if options[:force]
|
42
42
|
end
|
43
43
|
|
44
44
|
def self.write_password_file(password, output_path, key_path = key_file_dir)
|
@@ -68,7 +68,7 @@ module Passw3rd
|
|
68
68
|
d = cipher.update(cipher_text)
|
69
69
|
d << cipher.final
|
70
70
|
rescue OpenSSL::Cipher::CipherError => err
|
71
|
-
puts "Couldn't decrypt password. Are you using the right keys (#{key_path})?"
|
71
|
+
puts "Couldn't decrypt password #{cipher_text}. Are you using the right keys (#{key_path})?"
|
72
72
|
raise err
|
73
73
|
end
|
74
74
|
end
|
data/lib/passw3rd/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: passw3rd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-11-
|
12
|
+
date: 2011-11-09 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description: Generate a key/iv file, generate passwords, and store encrypted files
|
15
15
|
in source control, keep the key/iv safe!
|