3 ms·
I 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 relevan
by Declanomous 10y ago
I 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.