3 ms·
I once built a license code scheme that occasionally generated obscenities in the middle of the code. Once we realized the problem, we had a fun few hours build
by mikeash 10y ago
I once built a license code scheme that occasionally generated obscenities in the middle of the code. Once we realized the problem, we had a fun few hours building a blacklist with every obscenity we could think of.
- cvwright 10y agoThis is where I always chime in with a link to the List of Dirty, Nasty, or Otherwise Obscene Words on github. https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and-Otherwise-Bad-Words https://github.com/LDNOOBW/List-of-Dirty-Naughty-Obscene-and... I originally found this list during a few frantic hours after I first created a password cracking homework for my security class. Naturally I'd used the Linux dictionary in /usr/dict/words as the source of the passwords. It only occurred to me much later to check what passwords my script had randomly chosen, and by then the hashes had been distributed to the students. Whoops!
- mikeash 10y ago> Added "shitblimp" I'm already in love.
- Declanomous 10y agoI built a similar system for marketing codes recently, but I wanted to encode a combination of the user ID and some of the details of the mailing so the relevant information could be determined without having to check a database. I just removed letters that could create certain four-letter forms of profanity, and then broke up the code into four-letter blocks using hyphens so I didn't have to worry about obscenities longer than that. I don't doubt you could still find an obscenity if you were really looking, but I feel comfortable with that level of obscenity prevention. If someone honestly finds a way to be offended by whatever obscenity possibilities are left over, then they could probably find a reason to be offended by almost anything.