Password Security Shield Icon representing the Password Validator Project

Password Validator Project

In this project, I was responsible for building a password validator using both Bash and Powershell.

Portfolio Video #1


Welcome to my latest project: the Password Validator! In today’s digital age, ensuring the security of our online accounts is more crucial than ever. With this in mind, I’ve developed a sophisticated password validator implemented in both Bash and PowerShell. This tool helps you check the strength of your passwords based on specific criteria to keep your accounts safe and secure.


🛡️ Password Strength Validation

The Password Validator ensures that your passwords are robust enough to resist common hacking attempts. It checks whether your password is at least 8 characters long and contains at least one special character.

🖥️ User-Friendly Interface

Navigating through the password input and validation process is a breeze, thanks to the interactive prompts that guide you every step of the way.

🔁 Retry Option

Made a mistake in your password entry? No worries! You can easily retry entering your password without any hassle.

🌈 Colored Output

To enhance readability, success and error messages are color-coded. Green indicates a strong password, while red warns you of a weak one.

Getting Started

Running the Bash Script

  1. Open your terminal.
  2. Navigate to the directory containing the script.
  3. Execute the script by running ./

Running the PowerShell Script

  1. Open PowerShell.
  2. Navigate to the directory containing the script.
  3. Run the script with .\PasswordValidator.ps1.

Note: If you encounter issues with script execution in PowerShell, you may need to adjust the execution policy. Simply open PowerShell as an administrator and run Set-ExecutionPolicy RemoteSigned.

How It Works

Bash Implementation

The Bash script utilizes a function to check the password strength. It ensures the password meets the required length and contains at least one special character. The user is prompted to enter their password, and the script validates it accordingly.

PowerShell Implementation

The PowerShell script uses a similar approach but leverages PowerShell-specific syntax. It checks the password against a regular expression pattern to verify its strength. The user is prompted to enter their password securely, and the validation process begins.


I welcome contributions to enhance this project further! Feel free to fork the repository, make your improvements, and submit a pull request.


This project is licensed under the MIT License. For more details, please refer to the LICENSE file