8

There is a practice of showing bullets, not characters when a user inputs a password. Is this security through obscurity?

My first thought was that it's not, it's not really a system, we know how it works, one bullet = one character. It's just not showing the password so I don't think the definition of security by obscurity applies here. However, I'm not sure about it.

9
  • 2
    Some systems output a random number of bullets/asterisks (within a short range of course) for each entered character to make it harder for over-lookers to spot the number of characters in the entered password. I don't encounter this anymore, for some reason it got out of style, yet it struck me as a smart thing to do. Commented Jan 17, 2022 at 21:27
  • 1
    @MartinMaat I was just thinking alike. Then I thought of my mother and almost immediately I have realised that It could be seen as a misleading and confusing feature. Imagine a layman typing down 10 characters password but only half are printed. Cognitively it is disturbing.
    – Laiv
    Commented Jan 18, 2022 at 15:34
  • 1
  • 1
    @Laiv I have never seen this with nothing appearing in response to a key stroke, it was always multiple placeholders per character. And my mother does not need any of this to be confused by her computer. Commented Jan 18, 2022 at 18:21
  • 1
    There is nothing wrong with security through obscurity - as long as it isn’t the only security. I know one really big attack target where the “obscurity” stopped attackers for several years.
    – gnasher729
    Commented Jan 18, 2022 at 19:42

1 Answer 1

14

Rather than the hand-waving "security via obscurity", I think you're best taking Kerckhoff's principle:

a cryptosystem should be secure, even if everything about the system, except the key, is public knowledge.

where the password is the "key" in this case. Security via obscurity is anything where the security of the system depends on something other than the key being kept secret.

As such, hiding the characters of the password as its is entered is absolutely not security via obscurity as it is protecting the one bit of the system which must be protected for it not to be security via obscurity. It is designed to protect against one very specific attack vector (shoulder surfers), and does that well.

3
  • I would say it protects somewhat, rather than very well. Reading a password from keypresses is harder than from a dialog box, but at the speed that most people use for typing noise strings it is perfectly feasible. Commented Jan 17, 2022 at 21:42
  • @KilianFoth I didn't say it protects "very well", I said it was a very specific attack vector. Commented Jan 17, 2022 at 21:45
  • 2
    The bullets are not a secret of how the system works. They are part of how the key is kept secret. An opponent knowing that the system uses bullets doesn’t weaken the systems security. Commented Jan 18, 2022 at 13:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.