The CreditCardValidator
is a classic college JAVA project designed to validate credit card numbers. It can distinguish between fake and valid credit card numbers. The project utilizes both server and client sides to perform various functions and manipulations on user input.
-
Luhn Validation: Validates each credit card number using the Luhn algorithm to ensure it's a legitimate number.
-
Save Checked Cards: After validation, the system can save the checked credit card numbers for future reference.
-
Export to TXT: Provides functionality to export the validated credit card numbers to a
.txt
file for external use or backup.
The CCValidation_Client
is the client-side component of the CreditCardValidator
project. It is responsible for:
-
User Interface: Provides an intuitive interface for users to input credit card numbers for validation.
-
Sending Requests: Sends credit card numbers to the server for validation and receives validation results.
-
Displaying Results: Showcases the validation results to the user, indicating whether a credit card number is valid or not.
The CCValidation_Server
is the server-side component of the CreditCardValidator
project. It handles:
-
Receiving Requests: Accepts credit card numbers sent from the client for validation.
-
Processing: Uses the Luhn algorithm and other validation methods to determine the legitimacy of the credit card number.
-
Storing Data: Has the capability to store validated credit card numbers for future reference.
-
Sending Responses: Sends back the validation results to the client.
Follow these steps to set up and run the CreditCardValidator
project on your local machine:
-
Ensure you have Java Development Kit (JDK) installed. If not, download and install it from the official Oracle website.
-
A Java Integrated Development Environment (IDE) like IntelliJ IDEA or Eclipse.
- Clone the Repository:
git clone https://github.com/PierreJanineh/CreditCardValidator.git
- Navigate to the Project Directory:
cd CreditCardValidator
- Open the Project: Open the project using your preferred Java IDE.
- Navigate to the CCValidation_Server directory in your IDE.
- Locate the main server class (usually containing a main method) and run it. This will start the server and it should be waiting for client connections.
- Navigate to the CCValidation_Client directory in your IDE.
- Locate the main client class (usually containing a main method) and run it.
- The client interface should appear, allowing you to input credit card numbers for validation.
- Input a credit card number into the client interface and submit it for validation.
- The server should process the request and send back a validation result, which will be displayed on the client interface.
Feel free to fork the project, submit pull requests, or report any issues you encounter.