diff -r be4b201d9a41 -r 545979c7dcd4 MqttMonitor/MqttConnectionOptionsDialog.py --- a/MqttMonitor/MqttConnectionOptionsDialog.py Thu Sep 06 19:33:51 2018 +0200 +++ b/MqttMonitor/MqttConnectionOptionsDialog.py Thu Sep 06 19:34:49 2018 +0200 @@ -16,6 +16,8 @@ from .Ui_MqttConnectionOptionsDialog import Ui_MqttConnectionOptionsDialog +from Utilities.crypto import pwConvert + class MqttConnectionOptionsDialog(QDialog, Ui_MqttConnectionOptionsDialog): """ @@ -102,7 +104,7 @@ # user credentials self.usernameEdit.setText(options["Username"]) - self.passwordEdit.setText(options["Password"]) + self.passwordEdit.setText(pwConvert(options["Password"], encode=False)) # last will and testament self.willQosSpinBox.setValue(options["WillQos"]) @@ -124,7 +126,7 @@ "Keepalive": self.keepaliveSpinBox.value(), "CleanSession": self.cleanSessionCheckBox.isChecked(), "Username": self.usernameEdit.text(), - "Password": self.passwordEdit.text(), + "Password": pwConvert(self.passwordEdit.text(), encode=True), "WillTopic": self.willTopicEdit.text(), "WillMessage": self.willMessageEdit.toPlainText(), "WillQos": self.willQosSpinBox.value(),