Just curious if you think this is of interest for the project. Maybe with the length check removed.
/* Assumes passwords should be six characters or longer.
* Returns true if password is easy and false otherwise.
*/
function isEasyPass(password) {
if (password.length > 5) {
return true;
}
var easyPass = ['000000', '0000000', '00000000', '0987654321', '111111', '1111111', '11111111', '123123', '123321', '123456',
'1234567', '12345678', '123456789', '1234567890', '1234abcd', '1234qwer', '123abc', '123asd', '123qwe', '1q2w3e', '222222', '2222222',
'22222222', '333333', '3333333', '33333333', '444444', '4444444', '44444444', '555555', '5555555', '55555555', '654321', '666666', '6666666',
'66666666', '7654321', '777777', '7777777', '77777777', '87654321', '888888', '8888888', '88888888', '987654321', '999999', '9999999', '99999999',
'a1b2c3', 'aaaaaa', 'abc123', 'academia', 'access', 'account', 'admin1', 'admin12', 'admin123', 'adminadmin', 'administrator', 'anything', 'asddsa',
'asdfgh', 'asdzxc', 'backup', 'bbbbbb', 'boss123', 'business', 'campus', 'cccccc', 'changeme', 'cluster', 'codename', 'codeword', 'coffee', 'computer',
'controller', 'cookie', 'customer', 'database', 'default', 'desktop', 'domain', 'example', 'exchange', 'explorer', 'files', 'foobar', 'foofoo', 'forever',
'freedom', 'home123', 'ihavenopass', 'Internet', 'internet', 'intranet', 'killer', 'letitbe', 'letmein', 'love123', 'manager', 'market', 'monitor', 'mypass',
'mypassword', 'mypc123', 'nobody', 'nopass', 'nopassword', 'nothing', 'office', 'oracle', 'pass12', 'pass123', 'passwd', 'Password', 'password', 'password1',
'password12', 'password123', 'private', 'public', 'q1w2e3', 'qazwsx', 'qazwsxedc', 'qqqqqq', 'qwe123', 'qweasd', 'qweasdzxc', 'qweewq', 'qwerty', 'qwewq',
'root123', 'rootroot', 'sample', 'secret', 'secure', 'security', 'server', 'shadow', 'student', 'superuser', 'supervisor', 'system', 'temp123', 'temporary',
'temptemp', 'test123', 'testtest', 'unknown', 'windows', 'work123', 'xxxxxx', 'zxccxz', 'zxcvbn', 'zzzzzz', 'dddddd', 'eeeeee', 'ffffff', 'gggggg', 'hhhhhh',
'iiiiii', 'jjjjjj', 'kkkkkk', 'llllll', 'mmmmmm', 'nnnnnn', 'oooooo', 'pppppp', 'qqqqqq', 'rrrrrr', 'ssssss', 'tttttt', 'uuuuuu', 'vvvvvv', 'wwwwww', 'yyyyyy'];
for (var i = 0; i < easyPass.length; i++) {
if (password == easyPass[i]) {
return true;
}
}
return false;
}
Just curious if you think this is of interest for the project. Maybe with the length check removed.
https://gist.github.com/1473684