Lot of password related changes all over the place.
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.
This commit is contained in:
parent
6b9b602c64
commit
2230a4bd61
21 changed files with 508 additions and 195 deletions
45
pglab/PassPhraseForm.cpp
Normal file
45
pglab/PassPhraseForm.cpp
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#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
|
||||
|
||||
*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue