def decrypt_string(self): passKeyFileName = self.passKeyFile.text() encPass = self.stringToDecrypt.text() if len(passKeyFileName) != 0 and len(encPass) != 0: encPass = decrypt.decrypt_password(passKeyFileName, encPass.encode()) self.decryptedString.setText(encPass) else: self.decryptedString.setText("!!! Nothing to decrypt !!!")
def getConnectionPassword(self, passkeyFile, password): decPass = decrypt.decrypt_password(passkeyFile, password.encode()) self._password = decPass