gtk2passwordapp 6.2.210911 → 6.3.230117

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 50325b99584a0c7bd8be362b964a7d2f70c625954610d985ccb9b6034a46c812
4
- data.tar.gz: a9fd1961191a354aade8107543043576e239d56c91784888e6523ab745adda78
3
+ metadata.gz: ce6b091d8da30214665f2a31cf0c2f94efabc2bd301d65a3a43d19c033afff5c
4
+ data.tar.gz: c52459d335600e3f341ee918e7de77281b84c30ebacef17f6305c5012365ea79
5
5
  SHA512:
6
- metadata.gz: 8cb72c1bce4132a8ee37b9e438b6a6141613fa32733b9ef1cf8b3407ad88866bef9f65c20741cc3c4caac58eceeced1a9a2d6f987a91da588ec44bad9dc9112c
7
- data.tar.gz: 8eeb926d217643da1264da73d0901831d6096d9a7e20006fb623b76bbd8813101bcf71051fb7c008144ce8e565377025d0c2a6c64b31b2bd0575d15349cfcce8
6
+ metadata.gz: b196dc6412a806950dcb76776d88fa7c3fa8a61bd5f00244e00a7ea337186a998e5f32f774049850cad1c5eb35d139cc120932bd1acc072aa88b6cae816d9d3b
7
+ data.tar.gz: 1d5a40bdf4e6f9022b1bda4b75fd23ea725a9fa4a95987e31e35dac6766409d1ffe0a5340953900c4ba8da1814eeb9a53cb7278a01d4aff6fe9d61537fa75e14
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Gtk2PasswordApp
2
2
 
3
- * [VERSION 6.2.210911](https://github.com/carlosjhr64/gtk2passwordapp/releases)
3
+ * [VERSION 6.3.230117](https://github.com/carlosjhr64/gtk2passwordapp/releases)
4
4
  * [github](https://github.com/carlosjhr64/gtk2passwordapp)
5
5
  * [rubygems](https://rubygems.org/gems/gtk2passwordapp)
6
6
 
@@ -14,11 +14,9 @@ Uses Blowfish to encrypt the datafile.
14
14
  Features random password generator, clipboard use, and TOTP.
15
15
 
16
16
  ## Install:
17
-
18
17
  ```console
19
18
  $ gem install gtk2passwordapp
20
19
  ```
21
-
22
20
  ## Help:
23
21
  ```console
24
22
  $ gtk2passwordapp --help
@@ -45,9 +43,9 @@ Default passwords data file is:
45
43
 
46
44
  Mouse clicks on logo:
47
45
 
48
- 1. `Right` to get the passwords list and select.
49
- 2. `Center` to reset the master password.
50
- 3. `Left` to get the application menu.
46
+ + Button #1: Get the passwords list and select.
47
+ + Button #2: Reset the master password.
48
+ + Button #3: Application menu.
51
49
 
52
50
  When you select an account,
53
51
  the username/password will be in clipboard/primary for a few seconds.
@@ -60,31 +58,48 @@ View Account page:
60
58
  * `Previous` button will put password/previous in clipboard/primary for a few seconds.
61
59
 
62
60
  ## Configuration:
63
-
64
61
  ```console
65
62
  $ ls ~/.config/gtk3app/gtk2passwordapp/config-?.?.rbon
66
63
  ```
67
-
68
- * Salt: If your master password length is under 14(LongPwd), it'll append this Salt.
69
- * TooOld: I have this set for a year (in seconds).
70
- * PwdFile: passwords file... you'll want include this file in your back-ups.
71
-
72
- If you're upgrading from `gtk2pwdV`,
73
- copy your passwords files to the new file name:
74
-
75
- ```console
76
- $ cp ~/.cache/gtk3app/gtk2passwordapp/gtk2pwdV.dat ~/.cache/gtk3app/gtk2passwordapp/dump.yzb
64
+ + Salt: If your master password length is under 16(LongPwd), it'll append this Salt.
65
+ + TooOld: I have this set for a year (in seconds).
66
+ + PwdFile: passwords file... you'll want include this file in your back-ups.
67
+
68
+ ## On password length
69
+
70
+ As of early 2023,
71
+ [Blockchain.com](https://www.blockchain.com/explorer/charts/hash-rate)
72
+ charts the total hash rate of the Bitcoin network approaching `300*M*TH/s`.
73
+ Interpreting this as the number a passwords it can test per second,
74
+ I estimate the number of passwords it could test in two years:
75
+ ```ruby
76
+ # Passwords attempted in two years:
77
+ M = 1_000_000
78
+ T = M*M
79
+ YEAR = 60*60*24*365
80
+ PASSWORDS = 2*YEAR*300*M*T
81
+ # There are 94 graph characters in ASCII.
82
+ # I can estimate the password length needed to cover this number of PASSWORDS:
83
+ Math.log(PASSWORDS,94).ceil #=> 15
84
+ # Excluding the quotes in graph, it's still:
85
+ Math.log(PASSWORDS,91).ceil #=> 15
77
86
  ```
87
+ So that's how come to a default password length of 15.
88
+
89
+ ## Trouble shooting on upgrades
78
90
 
79
- And remember to set your `Salt:` in the configuration file.
80
- The configuration file is created upon the first run of `gtk2passwordapp`, so
81
- you'll need to do that first.
91
+ Edit your configuration file's `:Salt` value
92
+ to what it was set in your previous configuration.
93
+ Also, the `:LongPwd` value changed from 14 to 16,
94
+ so if your long password length was 14 or 15,
95
+ you'll have to enter that as it's now considered short
96
+ and set `:Salt` to "".
82
97
 
83
98
  ## LICENSE:
84
99
 
85
100
  (The MIT License)
86
101
 
87
- Copyright (c) 2021 CarlosJHR64
102
+ Copyright (c) 2023 CarlosJHR64
88
103
 
89
104
  Permission is hereby granted, free of charge, to any person obtaining
90
105
  a copy of this software and associated documentation files (the
@@ -33,6 +33,16 @@ def self.run(pattern='.',
33
33
  $stderr.puts "Bad password+salt"
34
34
  exit 65
35
35
  end
36
- pp lst.select{|k,v|pattern.match? k}
36
+ lst.select{|k,v|pattern.match? k}.each do |k,v|
37
+ puts <<~RECORD
38
+ Account: #{k}
39
+ Username: #{v[2]}
40
+ Password: #{v[0]}
41
+ Previous: #{v[1]}
42
+ Note: #{v[4]}
43
+ URL: #{v[3]}
44
+ Updated: #{Time.at(v[5]).strftime('%Y-%m-%d %H:%M:%S')}
45
+ RECORD
46
+ end
37
47
  end
38
48
  end
@@ -12,7 +12,7 @@ class Gtk2PasswordApp
12
12
  # Hashing
13
13
 
14
14
  Salt: s0,
15
- LongPwd: 14,
15
+ LongPwd: 16,
16
16
 
17
17
  # Miscellaneous Strings
18
18
 
@@ -53,7 +53,7 @@ class Gtk2PasswordApp
53
53
  # Spin Buttons
54
54
 
55
55
  PWDLEN: [3,40,1],
56
- pwdlen: {set_value: 13},
56
+ pwdlen: {set_value: 15},
57
57
  pwdlen!: [:PWDLEN,:pwdlen],
58
58
 
59
59
  # Tools Labels
@@ -12,6 +12,7 @@ class Gtk2PasswordApp
12
12
  @tools = @password_page = @add_page = @edit_page = @main_page = @menu = nil
13
13
  build_password_page
14
14
  build_logo_menu
15
+ @password_entry.grab_focus
15
16
  end
16
17
 
17
18
  def build_logo_menu
@@ -35,6 +36,7 @@ class Gtk2PasswordApp
35
36
  @reset = true
36
37
  hide_main_page
37
38
  @password_page.show
39
+ @password_entry.grab_focus
38
40
  end
39
41
  end
40
42
 
@@ -119,9 +121,9 @@ class Gtk2PasswordApp
119
121
  @password_page = Such::Box.new @pages, :page!
120
122
  Such::Label.new @password_page, :PASSWORD_PAGE_LABEL, :page_label
121
123
  error_label,previous = nil,'' # updates below
122
- password_entry = field_row(@password_page, :PASSWORD, :password_entry!) do
123
- pwd = password_entry.text.strip
124
- password_entry.text = ''
124
+ @password_entry = field_row(@password_page, :PASSWORD, :password_entry!) do
125
+ pwd = @password_entry.text.strip
126
+ @password_entry.text = ''
125
127
  raise CONFIG[:TooShort] if pwd.length < CONFIG[:MinPwdLen]
126
128
  if not @reset and @accounts.exist?
127
129
  @accounts.load rehash pwd
@@ -214,7 +216,7 @@ class Gtk2PasswordApp
214
216
  generator = Such::Box.new @edit_page, :toolbox!
215
217
  pwdlen=rndpwd=nil
216
218
  Such::Button.new generator, :RAND, :tool_button do
217
- rndpwd = H2Q.convert RND.hexadecimal
219
+ rndpwd = H2Q.convert RND.hexadecimal.upcase
218
220
  @edit_password.text = rndpwd[0...pwdlen.value]
219
221
  end
220
222
  pwdlen = Such::SpinButton.new generator, :pwdlen!, 'value-changed' do
@@ -1,5 +1,5 @@
1
1
  class Gtk2PasswordApp
2
- VERSION = '6.2.210911'
2
+ VERSION = '6.3.230117'
3
3
  HELP = <<~HELP
4
4
  Usage:
5
5
  gtk2passwordapp [:gui+]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gtk2passwordapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.210911
4
+ version: 6.3.230117
5
5
  platform: ruby
6
6
  authors:
7
7
  - CarlosJHR64
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-11 00:00:00.000000000 Z
11
+ date: 2023-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yaml_zlib_blowfish
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '2.0'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 2.0.210127
22
+ version: 2.0.230116
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,47 +29,47 @@ dependencies:
29
29
  version: '2.0'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 2.0.210127
32
+ version: 2.0.230116
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: base_convert
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '6.0'
39
+ version: '7.1'
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: 6.0.210201
42
+ version: 7.1.221229
43
43
  type: :runtime
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: '6.0'
49
+ version: '7.1'
50
50
  - - ">="
51
51
  - !ruby/object:Gem::Version
52
- version: 6.0.210201
52
+ version: 7.1.221229
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: gtk3app
55
55
  requirement: !ruby/object:Gem::Requirement
56
56
  requirements:
57
57
  - - "~>"
58
58
  - !ruby/object:Gem::Version
59
- version: '5.1'
59
+ version: '5.4'
60
60
  - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 5.1.210203
62
+ version: 5.4.230109
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: '5.1'
69
+ version: '5.4'
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
- version: 5.1.210203
72
+ version: 5.4.230109
73
73
  - !ruby/object:Gem::Dependency
74
74
  name: base32
75
75
  requirement: !ruby/object:Gem::Requirement
@@ -104,20 +104,20 @@ dependencies:
104
104
  requirements:
105
105
  - - "~>"
106
106
  - !ruby/object:Gem::Version
107
- version: '2.0'
107
+ version: '3.2'
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 2.0.210126
110
+ version: 3.2.230116
111
111
  type: :runtime
112
112
  prerelease: false
113
113
  version_requirements: !ruby/object:Gem::Requirement
114
114
  requirements:
115
115
  - - "~>"
116
116
  - !ruby/object:Gem::Version
117
- version: '2.0'
117
+ version: '3.2'
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
- version: 2.0.210126
120
+ version: 3.2.230116
121
121
  description: |
122
122
  Ruby-Gnome Password Manager.
123
123
 
@@ -142,7 +142,7 @@ homepage: https://github.com/carlosjhr64/gtk2passwordapp
142
142
  licenses:
143
143
  - MIT
144
144
  metadata: {}
145
- post_install_message:
145
+ post_install_message:
146
146
  rdoc_options: []
147
147
  require_paths:
148
148
  - lib
@@ -157,9 +157,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements:
160
- - 'ruby: ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux]'
161
- rubygems_version: 3.2.22
162
- signing_key:
160
+ - 'ruby: ruby 3.2.0 (2022-12-25 revision a528908271) [aarch64-linux]'
161
+ rubygems_version: 3.4.3
162
+ signing_key:
163
163
  specification_version: 4
164
164
  summary: Ruby-Gnome Password Manager.
165
165
  test_files: []