Skip to content
Snippets Groups Projects
Commit b1c31d19 authored by Syed OMAR's avatar Syed OMAR
Browse files

Ensuring that the code still works and changed the StoredServices.fxml to look...

Ensuring that the code still works and changed the StoredServices.fxml to look better for the new decrypted passwords
parent ffa91ab6
No related branches found
No related tags found
No related merge requests found
Pipeline #8390 canceled
......@@ -93,4 +93,5 @@ public class Encryption {
return false;
}
}
}
\ No newline at end of file
......@@ -36,7 +36,11 @@ public class StoredServicesController {
// Set cell value factories for actual data columns
colService.setCellValueFactory(new PropertyValueFactory<>("platform"));
colUsername.setCellValueFactory(new PropertyValueFactory<>("username"));
colPassword.setCellValueFactory(new PropertyValueFactory<>("password"));
colPassword.setCellValueFactory(cellData -> {
String encrypted = cellData.getValue().getPassword();
String decrypted = Encryption.decrypt(encrypted); // Replace with your actual decrypt logic
return new javafx.beans.property.SimpleStringProperty(decrypted);
});
// Set a custom cell value factory for row numbers
colNumber.setCellValueFactory(cellData -> {
......
......@@ -51,9 +51,9 @@
<TableView fx:id="tableView" prefHeight="200.0" prefWidth="200.0" BorderPane.alignment="CENTER">
<columns>
<TableColumn fx:id="colNumber" prefWidth="60.0" text="Number" />
<TableColumn fx:id="colService" prefWidth="110.0" text="Service" />
<TableColumn fx:id="colUsername" prefWidth="101.0" text="Username" />
<TableColumn fx:id="colPassword" minWidth="0.0" prefWidth="327.0" text="Password" />
<TableColumn fx:id="colService" prefWidth="130.0" text="Service" />
<TableColumn fx:id="colUsername" prefWidth="152.0" text="Username" />
<TableColumn fx:id="colPassword" minWidth="0.0" prefWidth="256.0" text="Password" />
</columns>
</TableView>
</center>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment