rubeepass 3.4.9 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rubeepass.rb +6 -3
  3. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 67de7b0559cb6a1b611bf71ce6db53491573d31512eb08357e11e633b38e9bd7
4
- data.tar.gz: 5fc5dd74011743e2d3061d9136fac0bc695597003e6133a40714349d4b5ac3e0
3
+ metadata.gz: a148e19d6cf81e96f8d3f8e71b6c71c751f861340bef96f5f8f850845a23eaa6
4
+ data.tar.gz: f5465641b0f80bd5c5869a0a895a4eda46c2273142c9e81e2c0ca2fe9693ade3
5
5
  SHA512:
6
- metadata.gz: 763ab5e5ab95ce4a61e15a20b4ce8176161d3d575d8764253b7b3d9a48c254763be5b5a41c2feb2cfd4eabf8a5349820555bb84640b344daa5af76f3ca203737
7
- data.tar.gz: cecf827b1c9b306857ece0b36b37ba88637a84e928684e232246215471c77d5e5e901b37d9c1953b4ddb64a2c6f256d36c2b3b83af8ce40835472af8f1daf618
6
+ metadata.gz: 0bdc83e5d8aae63e2c3aca3d66196be326fbed81f3cc45681ac9fad7fdc5fa5aba26b971675e87e4978150dc2bb690aa6b91e6a172929674c620ceb175aecb54
7
+ data.tar.gz: efd3cdbbe428cf606ab9f1b813f78be8201231478543439726afc8924391f195c0149d7e02fbddb755ddca3752c3f6ae2b77d653d884ef1837e4a64070f51824
@@ -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.9
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: 2020-01-24 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
@@ -229,7 +229,7 @@ licenses:
229
229
  - GPL-3.0
230
230
  metadata:
231
231
  source_code_uri: https://gitlab.com/mjwhitta/rubeepass
232
- post_install_message:
232
+ post_install_message:
233
233
  rdoc_options: []
234
234
  require_paths:
235
235
  - lib
@@ -244,8 +244,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  - !ruby/object:Gem::Version
245
245
  version: '0'
246
246
  requirements: []
247
- rubygems_version: 3.1.2
248
- signing_key:
247
+ rubygems_version: 3.1.4
248
+ signing_key:
249
249
  specification_version: 4
250
250
  summary: Ruby KeePass 2.x read-only client
251
251
  test_files: []