The project is a javafx application (with MySql as backend) where in there are two login fields to counter sql injection attack the use of prepared statements has been done, for demo purpose the Admin.
login field has a radio button that enables and disables use of prepared statements to demonstrate how sql injection attacks work.
- Start a JavaFXApplication
- ADD mysql-connector-java jar files to Project Structure
- ADD javafx-sdk jar files
- ADD VM options
--module-path
<javafx sdk lib path>
--add-modules
javafx.controls,javafx.fxml,javafx.media
--add-exports
javafx.graphics/com.sun.javafx.sg.prism=ALL-UNNAMED- Start Xampp server
- Set application.Main as Main Java file
- Run code