mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-10 15:30:34 -04:00
Feature : --key-file option for CLI (#816)
* removing readFromLine * Removing gui-prompt * execute uses an arg list. * Testing with key-file * Fixing the -a option in EntropyMeter.
This commit is contained in:
parent
1edabc4b3c
commit
1d30283514
23 changed files with 92 additions and 189 deletions
|
@ -84,22 +84,6 @@ void TestKeys::testComposite()
|
|||
delete compositeKey4;
|
||||
}
|
||||
|
||||
void TestKeys::testCompositeKeyReadFromLine()
|
||||
{
|
||||
|
||||
QString keyFilename = QString("%1/FileKeyXml.key").arg(QString(KEEPASSX_TEST_DATA_DIR));
|
||||
|
||||
CompositeKey compositeFileKey = CompositeKey::readFromLine(keyFilename);
|
||||
FileKey fileKey;
|
||||
fileKey.load(keyFilename);
|
||||
QCOMPARE(compositeFileKey.rawKey().size(), fileKey.rawKey().size());
|
||||
|
||||
CompositeKey compositePasswordKey = CompositeKey::readFromLine(QString("password"));
|
||||
PasswordKey passwordKey(QString("password"));
|
||||
QCOMPARE(compositePasswordKey.rawKey().size(), passwordKey.rawKey().size());
|
||||
|
||||
}
|
||||
|
||||
void TestKeys::testFileKey()
|
||||
{
|
||||
QFETCH(QString, type);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue