Hide input string from stdin

Steven Schveighoffer via Digitalmars-d digitalmars-d at puremagic.com
Mon May 23 12:13:19 PDT 2016


On 5/22/16 10:12 PM, Era Scarecrow wrote:
> 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).

I admire your willingness to look at all approaches for this problem :)

-Steve


More information about the Digitalmars-d mailing list