In this project, I was responsible for building a password validator using both Bash and Powershell.
Portfolio Video #1
Introduction
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.
Features
🛡️ 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
- Open your terminal.
- Navigate to the directory containing the script.
- Execute the script by running
./passwordValidator.sh
.
Running the PowerShell Script
- Open PowerShell.
- Navigate to the directory containing the script.
- 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.
Contributing
I welcome contributions to enhance this project further! Feel free to fork the repository, make your improvements, and submit a pull request.
License
This project is licensed under the MIT License. For more details, please refer to the LICENSE file