Hide input string from stdin

Era Scarecrow via Digitalmars-d digitalmars-d at puremagic.com
Sun May 22 19:12:06 PDT 2016


On Sunday, 22 May 2016 at 22:38:46 UTC, Michael Chen wrote:
> I tried to write a small program that receive string as 
> password.
>  However, I didn't find available library for hide input 
> string, even in core library.  Any suggestion?

  Hmmm if you don't mind flooding the console (with either a 
pattern or spaces or newlines), you could spawn a separate thread 
to spam the console until it gets the flag to quit... Certainly 
not the best idea, but it would work... (Probably).


More information about the Digitalmars-d mailing list