This Java console application was developed as part of the OneBanc placement task. It validates 4-digit and 6-digit MPINs (Mobile Personal Identification Numbers) by checking for common weaknesses based on user demographics and known insecure patterns.
- Supports both 4-digit and 6-digit MPINs
- Detects commonly used or easily guessable MPINs (e.g.,
1234,000000,121212) - It checks if MPIN matches any personal demographic data like:
- Date of Birth (Self)
- Spouse's Date of Birth
- Wedding Anniversary
- Provides output:
Strength: STRONG or WEAK- If WEAK, lists reasons like:
COMMONLY_USED_MPINDEMOGRAPHIC_DOB_SELFDEMOGRAPHIC_DOB_SPOUSEDEMOGRAPHIC_ANNIVERSARY
- Enter your MPIN (4 or 6 digits): 181203
- Enter your Date of Birth (DDMMYYYY): 18122003
- Enter Spouse's Date of Birth (DDMMYYYY):
- Enter Wedding Anniversary (DDMMYYYY):
===== MPIN Analysis Result =====
- MPIN Strength:
WEAK - Reasons:
DEMOGRAPHIC_DOB_SELF
- Clone the Repository
git clone https://github.com/YOUR_USERNAME/OneBanc-Placement-Task.git cd OneBanc-Placement-Task - Compile Both Java Files
javac src/mpinTask.java src/mpinValidation.java
- Run the Application
javac src/mpinTask.java src/mpinValidation.java
OneBanc-Placement Task/
├── src/
│ ├── mpinTask.java # Main class with user input & validation
│ └── mpinValidation.java # Additional validation logic (if used)
├── README.mdAjay Tiwari B.Tech Final Year – Computer Science (Specialization in Artificial Intelligence). Passionate about Data Analytics, Java, and Secure System Design.
MIT License – Feel free to use, modify, and share with attribution.