devise-uncommon_password 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/devise/uncommon_password/model.rb +2 -4
- data/lib/devise/uncommon_password/passwords.txt +85 -85
- data/lib/devise/uncommon_password/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c0644cfc7319236fe9f99ad8bc613e09193bc94
|
4
|
+
data.tar.gz: 9df8f1f6c5bb7f8d799ad22112fea7e720e37645
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c42c095e07f8abf0b600f55b9fcd1bb06f0ef312640618afb51c10be236d5e1957fb0d6056ae36f803ecf87449ebcd871b104c0340a04bd8e04729948411d19
|
7
|
+
data.tar.gz: 2b4f476c72c725dc935eb2957ab38749fa188b28f1dfc4c2adda97078f07e7382e55467498d54c8d3aa8f6d9fcc3a168d17bd728ff42abed914bf20b386ee14e
|
data/README.md
CHANGED
@@ -1,4 +1,8 @@
|
|
1
1
|
# Devise Uncommon Password
|
2
|
+
|
3
|
+
[![Build Status](https://travis-ci.org/HCLarsen/devise-uncommon_password.svg?branch=master)](https://travis-ci.org/HCLarsen/devise-uncommon_password)
|
4
|
+
[![Code Climate](https://codeclimate.com/github/HCLarsen/devise-uncommon_password.svg)](https://codeclimate.com/github/HCLarsen/devise-uncommon_password)
|
5
|
+
|
2
6
|
Devise::UncommonPassword is an extension for the devise gem, which prevents users from signing up using one of the 100 most common passwords. Currently, the list of common passwords is derived from the list at http://www.passwordrandom.com/most-popular-passwords. As devise already rejects passwords less than 8 characters in length, I removed all such passwords from the list, and then selected the top 100 from the remaining passwords.
|
3
7
|
|
4
8
|
## Installation
|
@@ -13,9 +13,7 @@ module Devise
|
|
13
13
|
|
14
14
|
passwords = []
|
15
15
|
File.open(passwords_file, "r") do |file|
|
16
|
-
file.each
|
17
|
-
passwords << password.chomp
|
18
|
-
end
|
16
|
+
file.each { |password| passwords << password.chomp }
|
19
17
|
end
|
20
18
|
passwords
|
21
19
|
end
|
@@ -28,7 +26,7 @@ module Devise
|
|
28
26
|
|
29
27
|
def not_common_password
|
30
28
|
if Devise::Models::UncommonPassword.common_passwords.include? password.downcase
|
31
|
-
errors.add(:password, "is
|
29
|
+
errors.add(:password, "is a very common password. Please choose something harder to guess.")
|
32
30
|
end
|
33
31
|
end
|
34
32
|
end
|
@@ -1,100 +1,100 @@
|
|
1
1
|
password
|
2
|
+
123456
|
2
3
|
12345678
|
4
|
+
qwerty
|
5
|
+
dragon
|
3
6
|
baseball
|
4
7
|
football
|
8
|
+
letmein
|
9
|
+
monkey
|
10
|
+
696969
|
11
|
+
abc123
|
12
|
+
mustang
|
13
|
+
michael
|
14
|
+
shadow
|
15
|
+
master
|
5
16
|
jennifer
|
17
|
+
111111
|
18
|
+
jordan
|
6
19
|
superman
|
20
|
+
harley
|
21
|
+
1234567
|
22
|
+
fuckme
|
23
|
+
hunter
|
24
|
+
fuckyou
|
7
25
|
trustno1
|
26
|
+
ranger
|
27
|
+
buster
|
28
|
+
thomas
|
29
|
+
tigger
|
30
|
+
robert
|
31
|
+
soccer
|
32
|
+
batman
|
33
|
+
killer
|
34
|
+
hockey
|
35
|
+
george
|
36
|
+
charlie
|
37
|
+
andrew
|
8
38
|
michelle
|
9
39
|
sunshine
|
40
|
+
jessica
|
41
|
+
asshole
|
42
|
+
pepper
|
43
|
+
daniel
|
44
|
+
access
|
10
45
|
123456789
|
46
|
+
654321
|
47
|
+
joshua
|
48
|
+
maggie
|
11
49
|
starwars
|
50
|
+
silver
|
51
|
+
william
|
52
|
+
dallas
|
53
|
+
yankees
|
54
|
+
123123
|
55
|
+
ashley
|
56
|
+
666666
|
57
|
+
amanda
|
58
|
+
orange
|
59
|
+
biteme
|
60
|
+
freedom
|
12
61
|
computer
|
62
|
+
thunder
|
63
|
+
nicole
|
64
|
+
ginger
|
65
|
+
heather
|
66
|
+
hammer
|
67
|
+
summer
|
13
68
|
corvette
|
69
|
+
taylor
|
70
|
+
fucker
|
71
|
+
austin
|
72
|
+
merlin
|
73
|
+
matthew
|
74
|
+
121212
|
75
|
+
golfer
|
76
|
+
cheese
|
14
77
|
princess
|
78
|
+
martin
|
79
|
+
chelsea
|
80
|
+
patrick
|
81
|
+
richard
|
82
|
+
diamond
|
83
|
+
yellow
|
84
|
+
bigdog
|
85
|
+
secret
|
86
|
+
asdfgh
|
87
|
+
sparky
|
88
|
+
cowboy
|
89
|
+
camaro
|
90
|
+
anthony
|
91
|
+
matrix
|
92
|
+
falcon
|
15
93
|
iloveyou
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
bigdaddy
|
24
|
-
midnight
|
25
|
-
11111111
|
26
|
-
marlboro
|
27
|
-
victoria
|
28
|
-
butthead
|
29
|
-
startrek
|
30
|
-
liverpoo
|
31
|
-
danielle
|
32
|
-
redskins
|
33
|
-
mountain
|
34
|
-
shithead
|
35
|
-
xxxxxxxx
|
36
|
-
88888888
|
37
|
-
nicholas
|
38
|
-
metallic
|
39
|
-
qwertyui
|
40
|
-
dolphins
|
41
|
-
cocacola
|
42
|
-
rush2112
|
43
|
-
jonathan
|
44
|
-
scorpion
|
45
|
-
asdfasdf
|
46
|
-
godzilla
|
47
|
-
williams
|
48
|
-
lifehack
|
49
|
-
platinum
|
50
|
-
garfield
|
51
|
-
69696969
|
52
|
-
jordan23
|
53
|
-
bullshit
|
54
|
-
airborne
|
55
|
-
elephant
|
56
|
-
explorer
|
57
|
-
christin
|
58
|
-
december
|
59
|
-
benjamin
|
60
|
-
dickhead
|
61
|
-
brooklyn
|
62
|
-
redwings
|
63
|
-
michigan
|
64
|
-
87654321
|
65
|
-
guinness
|
66
|
-
einstein
|
67
|
-
snowball
|
68
|
-
alexande
|
69
|
-
passw0rd
|
70
|
-
lasvegas
|
71
|
-
slipknot
|
72
|
-
kimberly
|
73
|
-
1q2w3e4r
|
74
|
-
carolina
|
75
|
-
colorado
|
76
|
-
creative
|
77
|
-
bollocks
|
78
|
-
darkness
|
79
|
-
asdfghjk
|
80
|
-
poohbear
|
81
|
-
nintendo
|
82
|
-
november
|
83
|
-
password1
|
84
|
-
lacrosse
|
85
|
-
paradise
|
86
|
-
maryjane
|
87
|
-
spitfire
|
88
|
-
anderson
|
89
|
-
cherokee
|
90
|
-
drowssap
|
91
|
-
marshall
|
92
|
-
1qaz2wsx
|
93
|
-
caroline
|
94
|
-
franklin
|
95
|
-
snickers
|
96
|
-
courtney
|
97
|
-
westside
|
98
|
-
patricia
|
99
|
-
semperfi
|
100
|
-
freeuser
|
94
|
+
bailey
|
95
|
+
guitar
|
96
|
+
jackson
|
97
|
+
purple
|
98
|
+
scooter
|
99
|
+
phoenix
|
100
|
+
aaaaaa
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise-uncommon_password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Larsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-07
|
11
|
+
date: 2017-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
|
-
description: Devise extension to prevent
|
67
|
+
description: Devise extension to prevent users from using a common password.
|
68
68
|
email:
|
69
69
|
- clarsenipod@gmail.com
|
70
70
|
executables: []
|
@@ -102,5 +102,5 @@ rubyforge_project:
|
|
102
102
|
rubygems_version: 2.4.5.1
|
103
103
|
signing_key:
|
104
104
|
specification_version: 4
|
105
|
-
summary: Devise extension to prevent
|
105
|
+
summary: Devise extension to prevent users from using a common password.
|
106
106
|
test_files: []
|