Skip to content

Instantly share code, notes, and snippets.

View Frau87's full-sized avatar

Valerio Frau Frau87

  • Rome, Italy
  • 16:42 (UTC +02:00)
  • X @Frau87
View GitHub Profile
@huobazi
huobazi / gist:1039424
Created June 22, 2011 03:04
Password masking in C# console application
/// <summary>
/// Gets the console secure password.
/// </summary>
/// <returns></returns>
private static SecureString GetConsoleSecurePassword( )
{
SecureString pwd = new SecureString( );
while ( true )
{