HydrologicEngineeringCenter / ExcelToCWMS

1 stars 2 forks source link

Password security to hide password entered in console #12

Closed Tich1212 closed 3 years ago

Tich1212 commented 3 years ago

Addressing issues #3

Why: We need to hide the password as users enter it into the console

How: Created a new method GetHiddenPassword(displayMessage )that uses Console.ReadKey() and a series of if statements to swap chars with * in console and keep track of the resulting password entered.