password_blacklist 0.1.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +20 -0
- data/README.md +6 -3
- data/data/{100k_passwords.txt → Top95Thousand-probable.txt} +94515 -99531
- data/lib/password_blacklist/checker.rb +2 -2
- data/lib/password_blacklist/version.rb +1 -1
- data/password_blacklist.gemspec +8 -7
- metadata +37 -24
@@ -1,13 +1,13 @@
|
|
1
1
|
module PasswordBlacklist
|
2
2
|
class Checker
|
3
3
|
def initialize
|
4
|
-
file_path = File.expand_path('../../../data/
|
4
|
+
file_path = File.expand_path('../../../data/Top95Thousand-probable.txt', __FILE__)
|
5
5
|
|
6
6
|
@data = File.read(file_path)
|
7
7
|
end
|
8
8
|
|
9
9
|
def blacklisted?(password)
|
10
|
-
|
10
|
+
!!@data.match(Regexp.escape(password.downcase))
|
11
11
|
end
|
12
12
|
|
13
13
|
def inspect
|
data/password_blacklist.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = 'Checks a password against a 100k blacklist.'
|
13
13
|
spec.description = 'A simple Ruby library to check if a given string is
|
14
|
-
present in a blacklist of
|
14
|
+
present in a blacklist of 95,000 common passwords'
|
15
15
|
spec.homepage = 'https://www.github.com/gchan/password_blacklist'
|
16
16
|
spec.license = 'MIT'
|
17
17
|
|
@@ -22,15 +22,16 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.require_paths = ['lib']
|
23
23
|
spec.platform = Gem::Platform::RUBY
|
24
24
|
|
25
|
-
spec.required_ruby_version = '
|
25
|
+
spec.required_ruby_version = '>= 2.0'
|
26
26
|
|
27
|
-
spec.add_development_dependency 'bundler',
|
28
|
-
spec.add_development_dependency 'rake',
|
27
|
+
spec.add_development_dependency 'bundler', ">= 2.2.10"
|
28
|
+
spec.add_development_dependency 'rake', ">= 12.3.3"
|
29
29
|
|
30
30
|
spec.add_development_dependency 'rspec', '~> 3.5'
|
31
|
-
spec.add_development_dependency 'simplecov', '~> 0.
|
32
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
33
|
-
spec.add_development_dependency 'coveralls', '~> 0.8.
|
31
|
+
spec.add_development_dependency 'simplecov', '~> 0.16.1'
|
32
|
+
spec.add_development_dependency 'rubocop', '~> 0.49.1'
|
33
|
+
spec.add_development_dependency 'coveralls', '~> 0.8.23'
|
34
34
|
spec.add_development_dependency 'codeclimate-test-reporter', '~> 1.0.4'
|
35
35
|
spec.add_development_dependency 'benchmark-ips', '~> 2.7.2'
|
36
|
+
spec.add_development_dependency 'memory_profiler', '~> 1.0.0'
|
36
37
|
end
|
metadata
CHANGED
@@ -1,43 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: password_blacklist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gordon Chan
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.2.10
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.2.10
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 12.
|
33
|
+
version: 12.3.3
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 12.
|
40
|
+
version: 12.3.3
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,42 +58,42 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.16.1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.16.1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.49.1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.49.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: coveralls
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0.8.
|
89
|
+
version: 0.8.23
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0.8.
|
96
|
+
version: 0.8.23
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: codeclimate-test-reporter
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,9 +122,23 @@ dependencies:
|
|
122
122
|
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 2.7.2
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: memory_profiler
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - "~>"
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 1.0.0
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - "~>"
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.0.0
|
125
139
|
description: |-
|
126
140
|
A simple Ruby library to check if a given string is
|
127
|
-
present in a blacklist of
|
141
|
+
present in a blacklist of 95,000 common passwords
|
128
142
|
email:
|
129
143
|
- developer.gordon+github@gmail.com
|
130
144
|
executables: []
|
@@ -134,7 +148,7 @@ files:
|
|
134
148
|
- CHANGELOG.md
|
135
149
|
- LICENSE.txt
|
136
150
|
- README.md
|
137
|
-
- data/
|
151
|
+
- data/Top95Thousand-probable.txt
|
138
152
|
- lib/password_blacklist.rb
|
139
153
|
- lib/password_blacklist/checker.rb
|
140
154
|
- lib/password_blacklist/version.rb
|
@@ -143,13 +157,13 @@ homepage: https://www.github.com/gchan/password_blacklist
|
|
143
157
|
licenses:
|
144
158
|
- MIT
|
145
159
|
metadata: {}
|
146
|
-
post_install_message:
|
160
|
+
post_install_message:
|
147
161
|
rdoc_options: []
|
148
162
|
require_paths:
|
149
163
|
- lib
|
150
164
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
165
|
requirements:
|
152
|
-
- - "
|
166
|
+
- - ">="
|
153
167
|
- !ruby/object:Gem::Version
|
154
168
|
version: '2.0'
|
155
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
@@ -158,9 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
172
|
- !ruby/object:Gem::Version
|
159
173
|
version: '0'
|
160
174
|
requirements: []
|
161
|
-
|
162
|
-
|
163
|
-
signing_key:
|
175
|
+
rubygems_version: 3.1.6
|
176
|
+
signing_key:
|
164
177
|
specification_version: 4
|
165
178
|
summary: Checks a password against a 100k blacklist.
|
166
179
|
test_files: []
|