Logo Lanfrica

KomaneKMJ/Validation_SA_ID

Domain:

digital infrastructure

Record type:

software
Creator:
Kom
Host:
The South African ID Number Validator is a Java-based tool designed to verify the authenticity of South African ID numbers according to official government specifications. It ensures compliance with structural, logical, and checksum requirements, providing detailed validation feedback. πŸ“ South African ID Number Validator Java Gradle A Java application that validates South African ID numbers according to the official specifications, with an interactive user interface. ✨ Features βœ… Comprehensive Validation: Correct length (13 digits) Valid date of birth (YYMMDD format) Proper gender designation (0000-4999 for female, 5000-9999 for male) Valid citizenship digit (0 for citizen, 1 for permanent resident) Correct checksum digit (Luhn algorithm verification) πŸ’» Interactive CLI: Continuous input until user exits Detailed validation feedback Breakdown of valid ID numbers (date of birth, gender, citizenship) πŸ§ͺ Test Coverage: Comprehensive unit tests covering all validation rules βš™οΈ Requirements β˜• Java JDK 11 or higher πŸ› οΈ Gradle 7.0 or higher (for building) πŸš€ Installation & Usage 1. Clone the repository: git clone github.com cd validation_sa_id 2.Build the project: ./gradlew build 3. Run the application: ./gradlew run πŸ—οΈ Project Structure πŸ“¦ validation_sa_id β”œβ”€β”€ πŸ“‚ src β”‚ β”œβ”€β”€ πŸ“‚ main/java # Main application code β”‚ └── πŸ“‚ test/java # Unit tests β”œβ”€β”€ πŸ“œ build.gradle # Gradle build configuration β”œβ”€β”€ πŸ“œ settings.gradle # Project settings └── πŸ“œ README.md # This file