eterevsky / passwordgen

Chrome extension that generates passwords based on a master password and current domain.
MIT License
25 stars 8 forks source link

Suggestion for handling non-US domains #6

Closed daemonblade closed 10 years ago

daemonblade commented 10 years ago

If the last component is 2-letters in length, ie: a country-level TLD, it should default to using 3 components instead of just 2; eg trademe.co.nz, amazon.co.uk, commbank.com.au should all use the last 3 components.

Unfortunately, some non-US domains only use 2 components as well; eg airfrance.fr, promod.eu. The only long term solution I can see is extend the Profile attributes to include the number of components to use from the URL. This would allow 3 component non-US sites to use one Profile, and 2 component non-US sites to use another Profile.

eterevsky commented 10 years ago

I guess the only correct way is to incorporate into passwordgen the whole list from https://publicsuffix.org/. I'll try to spend some time on passwordgen over the next few days and do it.