Re: Password input in a console application

2023-04-21 Thread Kevin Layer
Raymond Wiker wrote: >> >> > On 12 Feb 2023, at 11:47, Alessio Stalla wrote: >> > >> > Greetings everyone, >> > >> > is there a well-known way to do the thing in the subject, >> > i.e. ask the user for a password in a console application, >> > reading from the keyboard without echoing anything

Re: Password input in a console application

2023-03-05 Thread Alessio Stalla
Thank you very much, works like a charm! On Sun, 12 Feb 2023 at 16:16, Raymond Wiker wrote: > > On 12 Feb 2023, at 11:47, Alessio Stalla wrote: > > Greetings everyone, > > is there a well-known way to do the thing in the subject, i.e. ask the > user for a password in a console application, read

Re: Password input in a console application

2023-02-12 Thread Raymond Wiker
> On 12 Feb 2023, at 11:47, Alessio Stalla wrote: > > Greetings everyone, > > is there a well-known way to do the thing in the subject, i.e. ask the user > for a password in a console application, reading from the keyboard without > echoing anything to the terminal? Using a library is fine, S

Re: Password input in a console application

2023-02-12 Thread Antoni Grzymała
Alessio, I think you should be able to reliably disable local echo in a terminal using a specific ANSI sequence. Sadly, my terminal foo is a bit rusty these days, so I don’t remember the specifics, but following this idea should help. Antoni > On 12 Feb 2023, at 11:47, Alessio Stalla wrote: