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.
InputReader
is usinggetpass
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). Withreadpassphrase
you could choose a large character limit (e.g. 1024), or you could allow clients of SwiftCLI to specify a limit.