pwned 1.2.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +13 -9
- data/.yardopts +1 -0
- data/CHANGELOG.md +70 -15
- data/README.md +139 -10
- data/bin/pwned +52 -0
- data/lib/pwned.rb +22 -6
- data/lib/pwned/hashed_password.rb +35 -0
- data/lib/pwned/not_pwned_validator.rb +17 -3
- data/lib/pwned/password.rb +11 -96
- data/lib/pwned/password_base.rb +133 -0
- data/lib/pwned/version.rb +1 -1
- data/pwned.gemspec +11 -2
- metadata +25 -30
- data/docs/NotPwnedValidator.html +0 -425
- data/docs/Pwned.html +0 -513
- data/docs/Pwned/Error.html +0 -149
- data/docs/Pwned/Password.html +0 -925
- data/docs/Pwned/TimeoutError.html +0 -152
- data/docs/PwnedValidator.html +0 -192
- data/docs/_index.html +0 -162
- data/docs/class_list.html +0 -51
- data/docs/css/common.css +0 -1
- data/docs/css/full_list.css +0 -58
- data/docs/css/style.css +0 -499
- data/docs/file.README.html +0 -292
- data/docs/file_list.html +0 -56
- data/docs/frames.html +0 -17
- data/docs/index.html +0 -292
- data/docs/js/app.js +0 -248
- data/docs/js/full_list.js +0 -216
- data/docs/js/jquery.js +0 -4
- data/docs/method_list.html +0 -115
- data/docs/top-level-namespace.html +0 -112
@@ -1,152 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Exception: Pwned::TimeoutError
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.12
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "Pwned::TimeoutError";
|
19
|
-
relpath = '../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="../class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="../_index.html">Index (T)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../Pwned.html" title="Pwned (module)">Pwned</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">TimeoutError</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Exception: Pwned::TimeoutError
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName"><span class='object_link'><a href="Error.html" title="Pwned::Error (class)">Error</a></span></span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">StandardError</li>
|
78
|
-
|
79
|
-
<li class="next"><span class='object_link'><a href="Error.html" title="Pwned::Error (class)">Error</a></span></li>
|
80
|
-
|
81
|
-
<li class="next">Pwned::TimeoutError</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
</dl>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<dl>
|
100
|
-
<dt>Defined in:</dt>
|
101
|
-
<dd>lib/pwned/error.rb</dd>
|
102
|
-
</dl>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
<h2>Overview</h2><div class="docstring">
|
107
|
-
<div class="discussion">
|
108
|
-
|
109
|
-
<p>An error to represent when the Pwned Passwords API times out.</p>
|
110
|
-
|
111
|
-
|
112
|
-
</div>
|
113
|
-
</div>
|
114
|
-
<div class="tags">
|
115
|
-
|
116
|
-
|
117
|
-
<p class="tag_title">See Also:</p>
|
118
|
-
<ul class="see">
|
119
|
-
|
120
|
-
<li><span class='object_link'><a href="Password.html#pwned%3F-instance_method" title="Pwned::Password#pwned? (method)">Password#pwned?</a></span></li>
|
121
|
-
|
122
|
-
<li><span class='object_link'><a href="Password.html#pwned_count-instance_method" title="Pwned::Password#pwned_count (method)">Password#pwned_count</a></span></li>
|
123
|
-
|
124
|
-
</ul>
|
125
|
-
|
126
|
-
</div>
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
</div>
|
143
|
-
|
144
|
-
<div id="footer">
|
145
|
-
Generated on Wed Mar 14 11:06:58 2018 by
|
146
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
147
|
-
0.9.12 (ruby-2.5.0).
|
148
|
-
</div>
|
149
|
-
|
150
|
-
</div>
|
151
|
-
</body>
|
152
|
-
</html>
|
data/docs/PwnedValidator.html
DELETED
@@ -1,192 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Class: PwnedValidator
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.12
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "PwnedValidator";
|
19
|
-
relpath = '';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
30
|
-
<div class="nav_wrap">
|
31
|
-
<iframe id="nav" src="class_list.html?1"></iframe>
|
32
|
-
<div id="resizer"></div>
|
33
|
-
</div>
|
34
|
-
|
35
|
-
<div id="main" tabindex="-1">
|
36
|
-
<div id="header">
|
37
|
-
<div id="menu">
|
38
|
-
|
39
|
-
<a href="_index.html">Index (P)</a> »
|
40
|
-
|
41
|
-
|
42
|
-
<span class="title">PwnedValidator</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="class_list.html">
|
50
|
-
|
51
|
-
<svg width="24" height="24">
|
52
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
53
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
54
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
55
|
-
</svg>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Class: PwnedValidator
|
63
|
-
|
64
|
-
<span class="deprecated note title">Deprecated</span>
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName"><span class='object_link'><a href="NotPwnedValidator.html" title="NotPwnedValidator (class)">NotPwnedValidator</a></span></span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">ActiveModel::EachValidator</li>
|
78
|
-
|
79
|
-
<li class="next"><span class='object_link'><a href="NotPwnedValidator.html" title="NotPwnedValidator (class)">NotPwnedValidator</a></span></li>
|
80
|
-
|
81
|
-
<li class="next">PwnedValidator</li>
|
82
|
-
|
83
|
-
</ul>
|
84
|
-
<a href="#" class="inheritanceTree">show all</a>
|
85
|
-
|
86
|
-
</dd>
|
87
|
-
</dl>
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
<dl>
|
100
|
-
<dt>Defined in:</dt>
|
101
|
-
<dd>lib/pwned/not_pwned_validator.rb</dd>
|
102
|
-
</dl>
|
103
|
-
|
104
|
-
</div>
|
105
|
-
|
106
|
-
<h2>Overview</h2><div class="docstring">
|
107
|
-
<div class="discussion">
|
108
|
-
<div class="note deprecated"><strong>Deprecated.</strong> <div class='inline'>
|
109
|
-
<p>use the <code>NotPwnedValidator</code> instead.</p>
|
110
|
-
</div></div>
|
111
|
-
|
112
|
-
<p>The version 1.1.0 validator that uses `pwned` in the validate method. This
|
113
|
-
has been updated to the above `not_pwned` validator to be clearer what is
|
114
|
-
being validated.</p>
|
115
|
-
|
116
|
-
<p>This class is being maintained for backwards compatitibility but will be
|
117
|
-
removed</p>
|
118
|
-
|
119
|
-
|
120
|
-
</div>
|
121
|
-
</div>
|
122
|
-
<div class="tags">
|
123
|
-
|
124
|
-
<div class="examples">
|
125
|
-
<p class="tag_title">Examples:</p>
|
126
|
-
|
127
|
-
|
128
|
-
<p class="example_title"><div class='inline'>
|
129
|
-
<p>Validate a password on a <code>User</code> model with the default options.</p>
|
130
|
-
</div></p>
|
131
|
-
|
132
|
-
<pre class="example code"><code><span class='kw'>class</span> <span class='const'>User</span> <span class='op'><</span> <span class='const'>ApplicationRecord</span>
|
133
|
-
<span class='id identifier rubyid_validates'>validates</span> <span class='symbol'>:password</span><span class='comma'>,</span> <span class='label'>pwned:</span> <span class='kw'>true</span>
|
134
|
-
<span class='kw'>end</span></code></pre>
|
135
|
-
|
136
|
-
</div>
|
137
|
-
|
138
|
-
<p class="tag_title">Since:</p>
|
139
|
-
<ul class="since">
|
140
|
-
|
141
|
-
<li>
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
<div class='inline'>
|
148
|
-
<p>1.1.0</p>
|
149
|
-
</div>
|
150
|
-
|
151
|
-
</li>
|
152
|
-
|
153
|
-
</ul>
|
154
|
-
|
155
|
-
</div>
|
156
|
-
|
157
|
-
|
158
|
-
<h2>Constant Summary</h2>
|
159
|
-
|
160
|
-
<h3 class="inherited">Constants inherited
|
161
|
-
from <span class='object_link'><a href="NotPwnedValidator.html" title="NotPwnedValidator (class)">NotPwnedValidator</a></span></h3>
|
162
|
-
<p class="inherited"><span class='object_link'><a href="NotPwnedValidator.html#DEFAULT_ON_ERROR-constant" title="NotPwnedValidator::DEFAULT_ON_ERROR (constant)">NotPwnedValidator::DEFAULT_ON_ERROR</a></span>, <span class='object_link'><a href="NotPwnedValidator.html#DEFAULT_THRESHOLD-constant" title="NotPwnedValidator::DEFAULT_THRESHOLD (constant)">NotPwnedValidator::DEFAULT_THRESHOLD</a></span></p>
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
<h2>Method Summary</h2>
|
176
|
-
|
177
|
-
<h3 class="inherited">Methods inherited from <span class='object_link'><a href="NotPwnedValidator.html" title="NotPwnedValidator (class)">NotPwnedValidator</a></span></h3>
|
178
|
-
<p class="inherited"><span class='object_link'><a href="NotPwnedValidator.html#validate_each-instance_method" title="NotPwnedValidator#validate_each (method)">#validate_each</a></span></p>
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
</div>
|
183
|
-
|
184
|
-
<div id="footer">
|
185
|
-
Generated on Wed Mar 14 11:06:58 2018 by
|
186
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
187
|
-
0.9.12 (ruby-2.5.0).
|
188
|
-
</div>
|
189
|
-
|
190
|
-
</div>
|
191
|
-
</body>
|
192
|
-
</html>
|
data/docs/_index.html
DELETED
@@ -1,162 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Documentation by YARD 0.9.12
|
8
|
-
|
9
|
-
</title>
|
10
|
-
|
11
|
-
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<script type="text/javascript" charset="utf-8">
|
16
|
-
pathId = null;
|
17
|
-
relpath = '';
|
18
|
-
</script>
|
19
|
-
|
20
|
-
|
21
|
-
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
24
|
-
|
25
|
-
|
26
|
-
</head>
|
27
|
-
<body>
|
28
|
-
<div class="nav_wrap">
|
29
|
-
<iframe id="nav" src="class_list.html?1"></iframe>
|
30
|
-
<div id="resizer"></div>
|
31
|
-
</div>
|
32
|
-
|
33
|
-
<div id="main" tabindex="-1">
|
34
|
-
<div id="header">
|
35
|
-
<div id="menu">
|
36
|
-
|
37
|
-
</div>
|
38
|
-
|
39
|
-
<div id="search">
|
40
|
-
|
41
|
-
<a class="full_list_link" id="class_list_link"
|
42
|
-
href="class_list.html">
|
43
|
-
|
44
|
-
<svg width="24" height="24">
|
45
|
-
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
46
|
-
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
47
|
-
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
48
|
-
</svg>
|
49
|
-
</a>
|
50
|
-
|
51
|
-
</div>
|
52
|
-
<div class="clear"></div>
|
53
|
-
</div>
|
54
|
-
|
55
|
-
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.12</h1>
|
56
|
-
<div id="listing">
|
57
|
-
<h1 class="alphaindex">Alphabetic Index</h1>
|
58
|
-
|
59
|
-
<h2>File Listing</h2>
|
60
|
-
<ul id="files" class="index_inline_list">
|
61
|
-
|
62
|
-
|
63
|
-
<li class="r1"><a href="index.html" title="README">README</a></li>
|
64
|
-
|
65
|
-
|
66
|
-
</ul>
|
67
|
-
|
68
|
-
<div class="clear"></div>
|
69
|
-
<h2>Namespace Listing A-Z</h2>
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
<table>
|
75
|
-
<tr>
|
76
|
-
<td valign='top' width="33%">
|
77
|
-
|
78
|
-
|
79
|
-
<ul id="alpha_E" class="alpha">
|
80
|
-
<li class="letter">E</li>
|
81
|
-
<ul>
|
82
|
-
|
83
|
-
<li>
|
84
|
-
<span class='object_link'><a href="Pwned/Error.html" title="Pwned::Error (class)">Error</a></span>
|
85
|
-
|
86
|
-
<small>(Pwned)</small>
|
87
|
-
|
88
|
-
</li>
|
89
|
-
|
90
|
-
</ul>
|
91
|
-
</ul>
|
92
|
-
|
93
|
-
|
94
|
-
<ul id="alpha_N" class="alpha">
|
95
|
-
<li class="letter">N</li>
|
96
|
-
<ul>
|
97
|
-
|
98
|
-
<li>
|
99
|
-
<span class='object_link'><a href="NotPwnedValidator.html" title="NotPwnedValidator (class)">NotPwnedValidator</a></span>
|
100
|
-
|
101
|
-
</li>
|
102
|
-
|
103
|
-
</ul>
|
104
|
-
</ul>
|
105
|
-
|
106
|
-
|
107
|
-
<ul id="alpha_P" class="alpha">
|
108
|
-
<li class="letter">P</li>
|
109
|
-
<ul>
|
110
|
-
|
111
|
-
<li>
|
112
|
-
<span class='object_link'><a href="Pwned/Password.html" title="Pwned::Password (class)">Password</a></span>
|
113
|
-
|
114
|
-
<small>(Pwned)</small>
|
115
|
-
|
116
|
-
</li>
|
117
|
-
|
118
|
-
<li>
|
119
|
-
<span class='object_link'><a href="Pwned.html" title="Pwned (module)">Pwned</a></span>
|
120
|
-
|
121
|
-
</li>
|
122
|
-
|
123
|
-
<li>
|
124
|
-
<span class='object_link'><a href="PwnedValidator.html" title="PwnedValidator (class)">PwnedValidator</a></span>
|
125
|
-
|
126
|
-
</li>
|
127
|
-
|
128
|
-
</ul>
|
129
|
-
</ul>
|
130
|
-
|
131
|
-
|
132
|
-
<ul id="alpha_T" class="alpha">
|
133
|
-
<li class="letter">T</li>
|
134
|
-
<ul>
|
135
|
-
|
136
|
-
<li>
|
137
|
-
<span class='object_link'><a href="Pwned/TimeoutError.html" title="Pwned::TimeoutError (class)">TimeoutError</a></span>
|
138
|
-
|
139
|
-
<small>(Pwned)</small>
|
140
|
-
|
141
|
-
</li>
|
142
|
-
|
143
|
-
</ul>
|
144
|
-
</ul>
|
145
|
-
|
146
|
-
</td>
|
147
|
-
</tr>
|
148
|
-
</table>
|
149
|
-
|
150
|
-
</div>
|
151
|
-
|
152
|
-
</div>
|
153
|
-
|
154
|
-
<div id="footer">
|
155
|
-
Generated on Wed Mar 14 11:06:57 2018 by
|
156
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
157
|
-
0.9.12 (ruby-2.5.0).
|
158
|
-
</div>
|
159
|
-
|
160
|
-
</div>
|
161
|
-
</body>
|
162
|
-
</html>
|