Skip to content

Usage of dots instead of plain text in getpass.getpass() #8338

@hannes101

Description

@hannes101

Description

In the process of creating a marimo notebook, I came across the problem that password input is echoed in plain text.

Image

I think this is well known, since it's also shown as a warning.
Would it be possible to get an input field, which obfuscates the entered text like in a jupyter notebook or in VSCode with the normal dots?

Suggested solution

Don't echo the entered text, but rather just dots.

Are you willing to submit a PR?

  • Yes

Alternatives

Perhaps it would be even better to not give any feedback in the input box.

Additional context

I was looking for any issue related to this, but I couldn't find one also not in the closed ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions