Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adia-dev/pwd-gen
Password generator utils, sha, sha256, base64 and more...
https://github.com/adia-dev/pwd-gen
bash password password-generator
Last synced: about 8 hours ago
JSON representation
Password generator utils, sha, sha256, base64 and more...
- Host: GitHub
- URL: https://github.com/adia-dev/pwd-gen
- Owner: adia-dev
- Created: 2024-05-08T22:44:39.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-20T16:34:28.000Z (4 months ago)
- Last Synced: 2024-07-20T17:48:10.354Z (4 months ago)
- Topics: bash, password, password-generator
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Password Generator (pwd-gen)
The `pwd-gen` script is a versatile command-line tool designed to generate secure passwords using various cryptographic methods. It supports SHA-256, SHA-512, Base64 encoding, and MD5 hashing, providing flexibility for users to choose the level of security and password complexity that best fits their needs.
### Features
- **Multiple Hashing Algorithms**: Generate passwords using SHA-256, SHA-512, MD5, or Base64 encoding.
- **Interactive Mode**: Choose the password generation method via a user-friendly interactive menu.
- **Output Control**: Direct password output to a console or save directly to a file.
- **Verbose and Quiet Modes**: Get detailed execution logs or suppress all output, suitable for scripting and automation.### Installation
```bash
# Clone the repository
git clone https://github.com/adia-dev/pwd-gen.git# Navigate to the script directory
cd pwd-gen# Make the script executable
chmod +x pwd-gen.sh# To install the script globally, move it to a directory in your PATH
ln -s "$(pwd)/pwd-gen.sh" /usr/local/bin/pwd-gen
```### Usage
Basic command structure:
```bash
pwd-gen.sh [method] [options]
```#### Methods
- `sha`: Generate a SHA-256 hashed password.
- `sha512`: Generate a SHA-512 hashed password.
- `base64`: Generate a Base64 encoded password.
- `md5`: Generate an MD5 hashed password (less secure).#### Options
- `-it, --interactive`: Launch the script in interactive mode to select the password generation method.
- `--output-file [path]`: Save the generated password to a specified file.
- `--verbose`: Enable verbose output.
- `--quiet`: Suppress all output.#### Examples
Generate a SHA-256 hashed password:
```bash
pwd-gen.sh sha
```Generate a password in interactive mode and save to a file:
```bash
pwd-gen.sh --interactive --output-file /path/to/password.txt
```Generate a Base64 encoded password and suppress all outputs:
```bash
pwd-gen.sh base64 --quiet
```### Tested Environment
This script has been thoroughly tested on macOS, ensuring compatibility and reliability. For users on other Unix-like systems, minor adjustments may be necessary depending on available system utilities and Bash version.