Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request — remove problematic words from dictionary #23

Open
bbusschots opened this issue Jan 31, 2024 · 2 comments
Open

Request — remove problematic words from dictionary #23

bbusschots opened this issue Jan 31, 2024 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@bbusschots
Copy link
Contributor

Request received via bartb.ie contact form:

I work for a K-8 school district in IT, we started using your xkpasswd for student passwords this year instead of basic crackable ones. It's been fantastic but I was wondering if there's a way to implement a SFW/child dictionary base instead of what is there currently. We mainly use your webpage for the passwords but I was hoping there's a way to be able to remove certain keywords more easily than manually.

The keywords that we've seen be problematic:
pain
hurt
dead
death
period
woman
Suffer
blood
died
grave
bone
heaven
pole
anger
broken
cried
sick
kiss

I understand if this isn't possible. It would be fantastic if there was a way to do basics like colors, school things, animals etc only.

@hepabolu
Copy link
Contributor

hepabolu commented Feb 3, 2024

We could make a separate preset with a special dictionary for this situation.

@hepabolu hepabolu added the enhancement New feature or request label Feb 10, 2024
@pricemi115
Copy link
Contributor

pricemi115 commented Feb 17, 2024

@hepabolu - Taking a brief look over the code as I catch up on my NosillaCast listening - specifically listening to your recent Chit Chat with Allison), it occurred to me that instead of a separate SFW/child dictionary, since THE_WORDS, which looks to the the source of the words used for password generation, is an array of words - it (THE_WORDS) could be changed to be an array of objects. The object in question would be the word paired with a NSFC (not safe for child) flag. Or better yet, paired with a list of tags. Then when getting the list, you could filter for the tags to include/exclude.

For example:
// the word list
const THE_WORDS = [
{'Africa', {EN}}, // English word
{'dead', {EN, NSFC}}, // English word, and Not safe/apprioriate for children

@hepabolu hepabolu added this to the 2.0 Release milestone Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants