Hello Everyone,
I posted yesterday about a password strength meter I am working on. Currently I have a function that checks if common passwords are used in the password itself (eg: qwerty, welcome, password1, etc...).
On the web, I found a large .txt file that contains over hundreds of commonly used passwords that I would like to implement into my PW checker (but would take up too much space by adding hundred of If-Else statements.
My question is...
Is there a way in JS to read the .txt file, search through the file, and check to see if any of the common PW's in the list match the current PW?
or
What would be an easy way to do so?
Any help would be greatly appreciated.
I posted yesterday about a password strength meter I am working on. Currently I have a function that checks if common passwords are used in the password itself (eg: qwerty, welcome, password1, etc...).
On the web, I found a large .txt file that contains over hundreds of commonly used passwords that I would like to implement into my PW checker (but would take up too much space by adding hundred of If-Else statements.
My question is...
Is there a way in JS to read the .txt file, search through the file, and check to see if any of the common PW's in the list match the current PW?
or
What would be an easy way to do so?
Any help would be greatly appreciated.
Comment