Password is no longer saved with the connection list. Password is not entered along with other connection credentials. Password is now asked for when required. Still working on saving the password and auto retrieving it from the password manager.
45 lines
1.1 KiB
C++
45 lines
1.1 KiB
C++
#include "PassPhraseForm.h"
|
|
#include "ui_PassPhraseForm.h"
|
|
|
|
PassPhraseForm::PassPhraseForm(QWidget *parent) :
|
|
QWidget(parent),
|
|
ui(new Ui::PassPhraseForm)
|
|
{
|
|
ui->setupUi(this);
|
|
}
|
|
|
|
PassPhraseForm::~PassPhraseForm()
|
|
{
|
|
delete ui;
|
|
}
|
|
|
|
/*
|
|
|
|
Password strength calculation:
|
|
seperate characters in couple of groups
|
|
|
|
For the use of characters from each group a certain value is added to the base value
|
|
which is meant to signify the size of the set of characters the password is based on.
|
|
|
|
Some analysis of relative positions might be required! Predictable placement of special charachters and uppercase/lowercase or numbers
|
|
should be penalized.
|
|
|
|
These calculations should result in a search space size per character
|
|
|
|
the base to the power of the length of the password gives the resulting strength
|
|
from this result we take the 10 log to get the magnitude of the value.
|
|
|
|
a-z 1:3 2:7 3:13 4:26
|
|
A-Z 1:3 2:7 3:13 4:26
|
|
0-9 1:4 2:10
|
|
`~!@#$%^&*()_-=+[{]};:'",<.>/?\| 1:4 2:8 3:16 4:32
|
|
space +1
|
|
|
|
Straf punten
|
|
alleen speciaal karakter aan eind van string -8
|
|
alleen hoofdletter aan begin van wachtwoord -6
|
|
|
|
la-~ZDv4E-O*y]C
|
|
bYGWlDyeKKbcZBjoWX
|
|
|
|
*/
|