Disable stdin echo when entering passwords on cli

This commit is contained in:
Weslly committed 2017-06-21 11:15:59 -03:00
1 parent 7438d6db18
commit 400073c7cc
6 files changed
+111 -6

No files matched your search

+2 -2
View File
@@ -29,6 +29,7 @@
#include "core/Database.h"
#include "format/KeePass2Reader.h"
#include "keys/CompositeKey.h"
#include "cli/PasswordInput.h"
int Extract::execute(int argc, char** argv)
{
@@ -50,8 +51,7 @@ int Extract::execute(int argc, char** argv)
out << "Insert the database password\n> ";
out.flush();
static QTextStream inputTextStream(stdin, QIODevice::ReadOnly);
QString line = inputTextStream.readLine();
QString line = PasswordInput::getPassword();
CompositeKey key = CompositeKey::readFromLine(line);
QString databaseFilename = args.at(0);