From eb011bb04943d9d9a3f052cae25d806b00fa18cf Mon Sep 17 00:00:00 2001 From: Floris Bos Date: Fri, 4 Feb 2022 12:42:50 +0100 Subject: [PATCH] Store saved wifi password hashed Does have the consequence that if the user modifies the SSID, they will also need to enter the password again, as PBKDF2 scheme hashes SSID together with password. Closes #344 --- OptionsPopup.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OptionsPopup.qml b/OptionsPopup.qml index 588c14a..0ecac78 100644 --- a/OptionsPopup.qml +++ b/OptionsPopup.qml @@ -802,7 +802,7 @@ Popup { if (chkWifiSSIDHidden.checked) { settings.wifiSSIDHidden = true } - settings.wifiPassword = fieldWifiPassword.text + settings.wifiPassword = fieldWifiPassword.text.length == 64 ? fieldWifiPassword.text : imageWriter.pbkdf2(fieldWifiPassword.text, fieldWifiSSID.text) settings.wifiCountry = fieldWifiCountry.editText } if (chkLocale.checked) {