Skip to content

Use readpassphrase instead of getpass #109

@paulhimes

Description

@paulhimes

InputReader is using getpass to read secure values. Unfortunately, getpass is limited to 128 characters of input. The remaining input is silently truncated.

readpassphrase, on the other hand, can accept an arbitrary amount of input (up to a specified maximum). With readpassphrase you could choose a large character limit (e.g. 1024), or you could allow clients of SwiftCLI to specify a limit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions