rubeepass 3.4.5 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/rpass +1 -1
  3. data/lib/rubeepass.rb +6 -3
  4. metadata +44 -43
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4364efc6df401eccb9ab23370d33933789a3f10434aed14cb97453682cd46126
4
- data.tar.gz: 35f0d508206e7f9435de86cfb476470ce50b6bc1f4ba8fd37d0caf656db1761f
3
+ metadata.gz: a148e19d6cf81e96f8d3f8e71b6c71c751f861340bef96f5f8f850845a23eaa6
4
+ data.tar.gz: f5465641b0f80bd5c5869a0a895a4eda46c2273142c9e81e2c0ca2fe9693ade3
5
5
  SHA512:
6
- metadata.gz: 274768753d57df3239eb2de2d71f8eb1b1682ef2f3c38686392d960a2607e052f7e0a0b629a1e934612e062c290758deb8cac3a7add51f766c3dd88ce60ff854
7
- data.tar.gz: 2f277366abc0ae556c070caf01a536d57b25d05e83e4933b2949bc31212df0c4ae3197b7f03c2f0cd6ce7c0a1c0daac3a88fa729198afa86f9d5f48afd67d74c
6
+ metadata.gz: 0bdc83e5d8aae63e2c3aca3d66196be326fbed81f3cc45681ac9fad7fdc5fa5aba26b971675e87e4978150dc2bb690aa6b91e6a172929674c620ceb175aecb54
7
+ data.tar.gz: efd3cdbbe428cf606ab9f1b813f78be8201231478543439726afc8924391f195c0149d7e02fbddb755ddca3752c3f6ae2b77d653d884ef1837e4a64070f51824
data/bin/rpass CHANGED
@@ -3,7 +3,7 @@
3
3
  require "djinni"
4
4
  require "hilighter"
5
5
  require "io/console"
6
- require "json_config"
6
+ require "jsoncfg"
7
7
  require "optparse"
8
8
  require "pathname"
9
9
  require "rubeepass"
@@ -342,8 +342,6 @@ class RubeePass
342
342
  end
343
343
 
344
344
  def join_key_and_keyfile
345
- passhash = Digest::SHA256.digest(@password)
346
-
347
345
  filehash = ""
348
346
  if (@keyfile)
349
347
  contents = File.readlines(@keyfile).join
@@ -370,7 +368,12 @@ class RubeePass
370
368
  end
371
369
  end
372
370
 
373
- @initial_key = Digest::SHA256.digest(passhash + filehash)
371
+ if @password.nil?
372
+ @initial_key = Digest::SHA256.digest(filehash)
373
+ else
374
+ passhash = Digest::SHA256.digest(@password)
375
+ @initial_key = Digest::SHA256.digest(passhash + filehash)
376
+ end
374
377
  end
375
378
  private :join_key_and_keyfile
376
379
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubeepass
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.5
4
+ version: 3.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Whittaker
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2020-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -16,40 +16,40 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '5.11'
19
+ version: '5.12'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 5.11.3
22
+ version: 5.12.2
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '5.11'
29
+ version: '5.12'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 5.11.3
32
+ version: 5.12.2
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '12.3'
39
+ version: '13.0'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 12.3.2
42
+ version: 13.0.0
43
43
  type: :development
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
46
46
  requirements:
47
47
  - - "~>"
48
48
  - !ruby/object:Gem::Version
49
- version: '12.3'
49
+ version: '13.0'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 12.3.2
52
+ version: 13.0.0
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: djinni
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,7 @@ dependencies:
59
59
  version: '2.2'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 2.2.4
62
+ version: 2.2.5
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
@@ -69,67 +69,67 @@ dependencies:
69
69
  version: '2.2'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 2.2.4
72
+ version: 2.2.5
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: hilighter
75
75
  requirement: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - "~>"
78
78
  - !ruby/object:Gem::Version
79
- version: '1.1'
79
+ version: '1.5'
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
- version: 1.2.3
82
+ version: 1.5.1
83
83
  type: :runtime
84
84
  prerelease: false
85
85
  version_requirements: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.1'
89
+ version: '1.5'
90
90
  - - ">="
91
91
  - !ruby/object:Gem::Version
92
- version: 1.2.3
92
+ version: 1.5.1
93
93
  - !ruby/object:Gem::Dependency
94
- name: json_config
94
+ name: jsoncfg
95
95
  requirement: !ruby/object:Gem::Requirement
96
96
  requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- version: 1.0.0
100
97
  - - "~>"
101
98
  - !ruby/object:Gem::Version
102
- version: '1.0'
99
+ version: '1.2'
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 1.2.11
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: 1.0.0
110
107
  - - "~>"
111
108
  - !ruby/object:Gem::Version
112
- version: '1.0'
109
+ version: '1.2'
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ version: 1.2.11
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: os
115
115
  requirement: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: 1.0.0
120
117
  - - "~>"
121
118
  - !ruby/object:Gem::Version
122
119
  version: '1.0'
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 1.0.1
123
123
  type: :runtime
124
124
  prerelease: false
125
125
  version_requirements: !ruby/object:Gem::Requirement
126
126
  requirements:
127
- - - ">="
128
- - !ruby/object:Gem::Version
129
- version: 1.0.0
130
127
  - - "~>"
131
128
  - !ruby/object:Gem::Version
132
129
  version: '1.0'
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: 1.0.1
133
133
  - !ruby/object:Gem::Dependency
134
134
  name: salsa20
135
135
  requirement: !ruby/object:Gem::Requirement
@@ -154,22 +154,22 @@ dependencies:
154
154
  name: scoobydoo
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - ">="
158
- - !ruby/object:Gem::Version
159
- version: 1.0.0
160
157
  - - "~>"
161
158
  - !ruby/object:Gem::Version
162
159
  version: '1.0'
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 1.0.1
163
163
  type: :runtime
164
164
  prerelease: false
165
165
  version_requirements: !ruby/object:Gem::Requirement
166
166
  requirements:
167
- - - ">="
168
- - !ruby/object:Gem::Version
169
- version: 1.0.0
170
167
  - - "~>"
171
168
  - !ruby/object:Gem::Version
172
169
  version: '1.0'
170
+ - - ">="
171
+ - !ruby/object:Gem::Version
172
+ version: 1.0.1
173
173
  - !ruby/object:Gem::Dependency
174
174
  name: twofish
175
175
  requirement: !ruby/object:Gem::Requirement
@@ -191,7 +191,7 @@ dependencies:
191
191
  - !ruby/object:Gem::Version
192
192
  version: 1.0.8
193
193
  description: Ruby KeePass 2.x client. Currently it is read-only.
194
- email: mjwhitta@gmail.com
194
+ email: mj@whitta.dev
195
195
  executables:
196
196
  - rpass
197
197
  extensions: []
@@ -227,8 +227,9 @@ files:
227
227
  homepage: https://gitlab.com/mjwhitta/rubeepass
228
228
  licenses:
229
229
  - GPL-3.0
230
- metadata: {}
231
- post_install_message:
230
+ metadata:
231
+ source_code_uri: https://gitlab.com/mjwhitta/rubeepass
232
+ post_install_message:
232
233
  rdoc_options: []
233
234
  require_paths:
234
235
  - lib
@@ -243,8 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
244
  - !ruby/object:Gem::Version
244
245
  version: '0'
245
246
  requirements: []
246
- rubygems_version: 3.0.3
247
- signing_key:
247
+ rubygems_version: 3.1.4
248
+ signing_key:
248
249
  specification_version: 4
249
250
  summary: Ruby KeePass 2.x read-only client
250
251
  test_files: []