Keyboard

Keyboard-safe passwords: when y and z are swapped

The password is right, but the login fails – on a laptop abroad, a smart TV, in the BIOS or at a Windows login with the wrong language setting. The reason is almost always the keyboard layout: on US and German keyboards some characters sit on different keys. Here is which ones – and how to build passwords that work everywhere.

With “keyboard-safe” in the Password Generator, passwords are typed identically on US and German keyboards.

Keyboard-safe password

The short version

Which characters move

If you press the keys for a password on a US keyboard while the computer expects a German layout (or the other way round), different characters come out:

You type (US keyboard)Computer expects German layout and reads
y / zz / y
@ (Shift + 2)"
^ (Shift + 6)&
& (Shift + 7)/
* ( ) (Shift + 8 / 9 / 0)( ) =
-ß
/-
' ; [ä ö ü
# (Shift + 3)§

Identical, on the other hand: all letters except y and z, all digits and the characters ! (Shift + 1), $ (Shift + 4), % (Shift + 5), comma and period.

Where the problem shows up

Tick “keyboard-safe” or choose the Wi-Fi preset – no surprises when typing.

How “keyboard-safe” works

With “keyboard-safe”, the generator only uses characters that sit on the same key in both layouts:

Also enable “Avoid look-alike characters” if the password will be typed from a printout or screen. Both are part of the Wi-Fi preset.

Is that still strong enough?

Yes. With “keyboard-safe”, 63 instead of about 80 characters are available per position. That costs about 0.3 bits of randomness per character – easily made up for by one or two extra characters:

PasswordEntropy
16 characters, all charactersabout 100 bits
16 characters, keyboard-safeabout 95 bits
18 characters, keyboard-safeabout 107 bits

Anything above roughly 80 bits is considered practically uncrackable. The generator shows the exact figure for your settings.

I’m locked out right now – what can I do?

  1. Test the password in plain text: type it into a normal text field (e.g. the search bar) and see which characters actually appear.
  2. Check the layout: on Windows, the taskbar (ENG/DEU) shows the active layout; switch with Windows + Space.
  3. Translate in your head: with a German layout active, type y and z swapped and enter symbols using the table above.
  4. Change it afterwards: once you’re in, replace the password with a keyboard-safe one.

Generate a keyboard-safe password

No y and z, only symbols that sit on the same keys on US and German keyboards – optionally without look-alike characters. Free and local.

Frequently asked questions

Why doesn’t my password work on a different keyboard?

Because some characters sit on different keys on US and German keyboards – mainly y and z and symbols like @, ", &, / and =. The computer then reads different characters than intended.

Which characters are the same on US and German keyboards?

All letters except y and z, all digits and the symbols ! $ % plus comma and period.

Is a keyboard-safe password weaker?

Only slightly per character. One or two extra characters more than make up for it – 18 keyboard-safe characters are stronger than 16 arbitrary ones.

Does this cover French or other keyboards?

No. The option is designed for US and German layouts. French AZERTY keyboards also swap a/q and w/z and require Shift for digits.

Why does my password fail at the Windows sign-in?

Often a different keyboard layout is active before sign-in. Windows key + Space switches layouts; the ENG/DEU indicator in the taskbar shows the active one.

How do I create a keyboard-safe password?

In the Password Generator, tick “Keyboard-safe” or choose the Wi-Fi preset. Only characters that sit on the same keys in both layouts are used.

Sources

  1. NIST Special Publication 800-63B – Digital Identity Guidelines: Authentication, National Institute of Standards and Technology.
  2. Crypto.getRandomValues(), MDN Web Docs – the random number generator the password generator uses.

Passwords that work on any keyboard – free.

Open the tool