From 50188038897b91f10827ec9f71d35375f526fb76 Mon Sep 17 00:00:00 2001 From: Carson McManus Date: Mon, 22 May 2017 17:45:49 -0400 Subject: [PATCH] implement ReadLineSecure(), fix #7 --- Manifest.cs | 6 +++--- Program.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Manifest.cs b/Manifest.cs index 45e0035..6486cae 100644 --- a/Manifest.cs +++ b/Manifest.cs @@ -180,7 +180,7 @@ namespace SteamGuard while (!passKeyValid) { Console.WriteLine("Please enter encryption password: "); - passKey = Console.ReadLine(); + passKey = Utils.ReadLineSecure(); if (passKey == "") continue; passKeyValid = this.VerifyPasskey(passKey); @@ -212,9 +212,9 @@ namespace SteamGuard do { Console.Write("Enter" + (inAccountSetupProcess ? " " : " new ") + "passkey: "); - newPassKey = Console.ReadLine(); + newPassKey = Utils.ReadLineSecure(); Console.Write("Confirm" + (inAccountSetupProcess ? " " : " new ") + "passkey: "); - confirmPassKey = Console.ReadLine(); + confirmPassKey = Utils.ReadLineSecure(); if (newPassKey != confirmPassKey) { diff --git a/Program.cs b/Program.cs index c41528c..9de521d 100644 --- a/Program.cs +++ b/Program.cs @@ -324,7 +324,7 @@ namespace SteamGuard username = Console.ReadLine(); } Console.Write("Password: "); - var password = Console.ReadLine(); + var password = Utils.ReadLineSecure(); UserLogin login = new UserLogin(username, password); string emailCode = null, twoFactorCode = null;