passw3rd 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +5 -6
- data/lib/passw3rd/key_loader.rb +2 -2
- data/lib/passw3rd/version.rb +1 -1
- data/test/password_service_test.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-

|
2
2
|
|
3
|
-
------------------------------------------------------------------------------
|
4
3
|
Introduction
|
5
4
|
------------------------------------------------------------------------------
|
6
5
|
|
@@ -20,19 +19,19 @@ Some advantages of keeping credentials out of source code are:
|
|
20
19
|
general. If changing a credential requires you to change code, you are less
|
21
20
|
likely to want to do it.
|
22
21
|
|
23
|
-
|
22
|
+
|
24
23
|
Status
|
25
24
|
------------------------------------------------------------------------------
|
26
25
|
|
27
|
-
This project is IN PROGRESS.
|
26
|
+
This project is IN PROGRESS. File bugs and feature requests.
|
27
|
+
|
28
28
|
|
29
|
-
------------------------------------------------------------------------------
|
30
29
|
License
|
31
30
|
------------------------------------------------------------------------------
|
32
31
|
|
33
32
|
License: MIT (see LICENSE file)
|
34
33
|
|
35
|
-
|
34
|
+
|
36
35
|
Credits
|
37
36
|
------------------------------------------------------------------------------
|
38
37
|
|
data/lib/passw3rd/key_loader.rb
CHANGED
@@ -34,8 +34,8 @@ module Passw3rd
|
|
34
34
|
key = cipher.random_key
|
35
35
|
|
36
36
|
begin
|
37
|
-
File.open(path + KEY_FILE, 'w') {|f| f.write(key.unpack("H*")) }
|
38
|
-
File.open(path + IV_FILE, 'w') {|f| f.write(iv.unpack("H*")) }
|
37
|
+
File.open(path + KEY_FILE, 'w') {|f| f.write(key.unpack("H*").join) }
|
38
|
+
File.open(path + IV_FILE, 'w') {|f| f.write(iv.unpack("H*").join) }
|
39
39
|
rescue
|
40
40
|
puts "Couldn't write key/IV to #{path}\n"
|
41
41
|
raise $!
|
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.0.
|
4
|
+
version: 0.0.10
|
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-10-
|
12
|
+
date: 2011-10-13 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!
|