Skip to content

Hide password instead of replacing it with a character #1783

Open
@Crissal1995

Description

@Crissal1995

Hey there, questionary user here.

I opened this issue to hide the password that an user types when using questionary.password() (a wrapper around PromptSession(is_password=True): tmbo/questionary#321

Would be nice to specify the character to use to mask the password; right now this is *, and from a quick look it doesn't seem possible to change this behavior from an external user point of view? But correct me if I'm wrong obviously.

Line of code affected:

def __init__(self, char: str = "*") -> None:

Would be nice to select either the character to use, e.g., empty string "", or just have a switch to mask the password at all, leaving the default * in case the password is not masked.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions