mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-23 10:37:37 -07:00
Disguise password length in prompt
This commit is contained in:
parent
4146f2e202
commit
f732e723b7
@ -88,13 +88,11 @@ namespace
|
||||
{
|
||||
pass.back() = '\0';
|
||||
pass.resize(pass.size() - 1);
|
||||
std::cout << "\b \b";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
pass.push_back(ch);
|
||||
std::cout << '*';
|
||||
}
|
||||
}
|
||||
|
||||
@ -150,13 +148,11 @@ namespace
|
||||
{
|
||||
aPass.back() = '\0';
|
||||
aPass.resize(aPass.size() - 1);
|
||||
std::cout << "\b \b";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
aPass.push_back(ch);
|
||||
std::cout << '*';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user