-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathPassword_validation_pattern.md.html
52 lines (52 loc) · 1.46 KB
/
Password_validation_pattern.md.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="" xml:lang="">
<head>
<meta charset="utf-8" />
<meta name="generator" content="pandoc" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, user-scalable=yes"
/>
<title>Password_validation_pattern.md</title>
<style type="text/css">
code {
white-space: pre-wrap;
}
span.smallcaps {
font-variant: small-caps;
}
span.underline {
text-decoration: underline;
}
div.column {
display: inline-block;
vertical-align: top;
width: 50%;
}
</style>
</head>
<body>
<p>Length checking:</p>
<p><code>^(?=.{8,20}$).+$</code></p>
<p>Valid Characters, not repeated thrice:</p>
<p><code>^(?!.*([\w\d*?!:;])\1{2}).+$</code></p>
<p>
<code>^(?!.*([A-Za-z0-9])\1{2})(?=.*[a-z])(?=.*\d)[A-Za-z0-9]+$</code> or
^(?=.{8,20}<span class="math inline"
><span class="math inline"
>$)(?=\[^A-Za-z\]\*\[A-Za-z\])(?=\[^0-9\]\*\[0-9\])(?:(\[\\w\\d\*?!:;\])\\1?(?!\\1))+$</span
></span
>
(matches in fewer stepts but needs more steps to fail)
</p>
<p>
Only allow a limited set of symbols (e.g. <code>.-()/</code>), not more
than two times (non-consecutive)
</p>
<p>
<code
>^(?!([.()\/-])((?!\1).)+\1((?!\1).)+\1)(?!.*([\/\(\)\.\-])\2)[a-zA-Z\/().\s-]+$</code
>
</p>
</body>
</html>