moeezumer6754 / Group02-Discrete

0 stars 0 forks source link

Define Features and Working of the Password Strength Checker App #4

Open moeezumer6754 opened 5 days ago

moeezumer6754 commented 5 days ago

Objective: To collaboratively outline the key features and functionality of the app to ensure clarity and alignment across the team.

Description: We need to define the core features and how the app will work to provide a clear direction for development. This includes specifying the user flow, essential functionalities, and any additional features that will enhance the app's usability and effectiveness.

Tasks: Front-End Team: Give an overview of the ideas to make this app interactive for the user.

Logic Team: Draft the workflow for password strength evaluation and real-time validation.

shamoonasadk commented 5 days ago

Drafting the workflow (Backend)

To begin with, the system will capture the user's password input in real-time as they type. This ensures immediate evaluation and feedback without requiring the user to submit the password manually. The password will be evaluated against specific strength rules, such as minimum length (e.g., 8 characters), inclusion of uppercase and lowercase letters, numbers, and special characters.

Furthermore, as users type their password, the system will provide dynamic feedback to guide them. This includes strength indicators like “weak,” “moderate,” or “strong” and visual cues such as color changes or progress bars. The system will account for edge cases, such as empty fields or unsupported characters, to ensure a seamless process.

Additionally, the validation results will be sent to the frontend in real-time, allowing the user interface to update dynamically. This integration ensures a smooth and responsive user experience while maintaining consistent communication between the frontend and backend.

Fasih160 commented 5 days ago

Workflow for Password Strength Evaluation and Real-Time Validation

  1. Define Strength Criteria:

Establish measurable parameters to evaluate password strength:

Length: Minimum 8 characters.

Character Variety:

Include lowercase letters.

Include uppercase letters.

Include numbers.

Include special characters (e.g., !, @, #, $).

Entropy Calculation: Assess randomness using entropy-based scoring.

Common Password Avoidance: Cross-check against a database of frequently used passwords.

  1. Real-Time Validation Process:

Input Capture: Continuously monitor user input as they type.

Validation Triggers:

Check length after every keystroke.

Assess character variety dynamically.

Run all entered passwords through a preloaded "common passwords" list.

Strength Indicator Updates:

Display a visual indicator (e.g., a progress bar or colored labels: Weak, Moderate, Strong).

Offer real-time suggestions like:

“Add an uppercase letter.”

“Use more than 8 characters.”

  1. Scoring Logic:

Assign scores to different criteria:

Length: 1–4 points.

Character variety: 1 point per category.

Entropy: Additional points based on randomness.

Summarize the total score to determine overall strength:

Weak: Score < 5.

Moderate: Score 5–8.

Strong: Score > 8.

All these points are representing a general workflow. Of course, there can be modifications in this workflow.

Zaryan07 commented 2 days ago

Great initiative! To make the password strength checker interactive, the front-end team could:

  1. Real-Time Feedback : Provide immediate visual feedback as the user types their password (e.g., strength bar with colors).
  2. Tooltips/Guidance : Display suggestions for improving password strength (e.g., "Add a special character or number").
  3. Dynamic Animations : Include engaging animations or transitions for strength bar changes.
  4. Mobile-Friendly Design : Ensure the interface is responsive and accessible on all devices.