Skip to content

This Bash script is a simple yet effective password generator that allows users to create secure passwords of a specified length. It supports both Persian and English languages, making it accessible to a wider audience.

License

Notifications You must be signed in to change notification settings

emadasefi/Generated-Password

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Password Generator Script

This Bash script is a simple yet effective password generator that allows users to create secure passwords of a specified length. It supports both Persian and English languages, making it accessible to a wider audience.

▚ Features

  • Language Selection: The script prompts users to choose their preferred language (English or Persian) at the start. Password Length Input: Users can specify the desired length of the passwords they wish to generate.
  • Input Validation: The script includes input validation to ensure that the provided password length is a valid number, enhancing user experience by preventing errors.
  • Password Generation: Using the openssl command, the script generates three random passwords based on the specified length. The passwords are encoded in Base64 and truncated to the desired length for security.
  • Output Display: The generated passwords are displayed in a visually appealing format, with color-coded output for better readability.
  • ▚ How It Works

  • The script begins by defining color codes for terminal output.
  • It prompts the user to select a language for interaction.
  • Depending on the chosen language, it asks for the desired password length.
  • After validating the input, it generates three random passwords using openssl and stores them in an array.
  • Finally, it prints the generated passwords in a formatted manner.
  • This script is particularly useful for users looking to create strong passwords quickly and easily, without needing advanced technical skills.
  • — Feedback ❤️—

    Please leave a comment if you have any comments, suggestions or problems.

    About

    This Bash script is a simple yet effective password generator that allows users to create secure passwords of a specified length. It supports both Persian and English languages, making it accessible to a wider audience.

    Topics

    Resources

    License

    Stars

    Watchers

    Forks

    Languages