Is there a way to clear password mid-entry?

In bash, following will clear your input before the cursor: Ctrl+U.

Same applies for passwords, i.e.: my-wrong-password Ctrl+U my-good-password


I always mash like 100 times on backspace and it seems to work for me. And re-enter my password