implement ReadLineSecure(), fix #7
This commit is contained in:
parent
d514a4546d
commit
5018803889
2 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue