4 ms·
An HTML input field can give your password generator a hint, right? Never looked at it closely but had the impression e.g. Safari's generator could adapt to cer
by mojuba 5y ago
An HTML input field can give your password generator a hint, right? Never looked at it closely but had the impression e.g. Safari's generator could adapt to certain rules and that they were somehow described in the HTML.
- tikkabhuna 5y agoApple have "Password Rules"[1]. No idea how many password generators respect it though. I've created a CodeSandbox example of it being used.[2] 1Password does honour it. [1] https://developer.apple.com/password-rules/ https://developer.apple.com/password-rules/ [2] https://codesandbox.io/s/password-rules-demo-029h5 https://codesandbox.io/s/password-rules-demo-029h5
- up6w6 5y agoBitwarden is on the way to support it. https://github.com/bitwarden/browser/pull/2047 https://github.com/bitwarden/browser/pull/2047
- bobbylarrybobby 5y agoYep, https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/password https://developer.mozilla.org/en-US/docs/Web/HTML/Element/in... there's even an option for a regex pattern that the password must match.
- mojuba 5y agoInteresting, that's different from what Safari supports (see sibling comment). I wonder what the algorithm is to generate a good password that matches a given regex. Also there's a potential problem with patterns that are wrong or contain errors, that may result in simple and insecure passwords. I don't see how Mozilla's approach is better than Safari's.