Passwords are now saved in a password manager.
The password manager uses strong encryption using a key derived from the passphrase using scrypt key strengthening algorithm. This ensures encryption is performed using a strong key and that brute forcing the passphrase is time consuming. If the user loses his passphrase no recovery is possible.
This commit is contained in:
parent
2230a4bd61
commit
e36924c087
27 changed files with 605 additions and 346 deletions
|
|
@ -140,9 +140,9 @@ void ConnectionListModel::newItem()
|
|||
emit dataChanged(idx, idx);
|
||||
}
|
||||
|
||||
Expected<ConnectionConfig> ConnectionListModel::get(int row)
|
||||
Expected<ConnectionConfig> ConnectionListModel::get(size_t row)
|
||||
{
|
||||
if (row >= 0 && row < (int)m_connections->size()) {
|
||||
if (row < m_connections->size()) {
|
||||
return m_connections->getConfigByIdx(row);
|
||||
}
|
||||
else {
|
||||
|
|
@ -204,5 +204,6 @@ void ConnectionListModel::save(size_t index)
|
|||
|
||||
void ConnectionListModel::save(size_t index, const ConnectionConfig &cc)
|
||||
{
|
||||
|
||||
m_connections->setConfigByIdx(index, cc);
|
||||
m_connections->save(index);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue