Crates.io | ideatopia-password_generator |
lib.rs | ideatopia-password_generator |
version | 1.0.9 |
source | src |
created_at | 2024-07-16 22:51:53.051983 |
updated_at | 2024-07-18 14:41:14.696589 |
description | Generates passwords with various complexities |
homepage | https://crates.io/crates/ideatopia-password-generator |
repository | https://github.com/ideatopia/password-generator |
max_upload_size | |
id | 1305601 |
size | 77,965 |
A command-line interface (CLI) tool for generating passwords with various complexities and options.
Clone the repository and build the project using Cargo:
git clone https://github.com/ideatopia/password-generator
cd password-generator
cargo build --release
Download binaries according to your system
curl -L https://github.com/ideatopia/password-generator/releases/latest/download/pwdgen-windows.exe -o pwdgen.exe
pwdgen.exe -h
curl -L https://github.com/ideatopia/password-generator/releases/latest/download/pwdgen-ubuntu -o pwdgen
chmod +x pwdgen
./pwdgen -h
curl -L https://github.com/ideatopia/password-generator/releases/latest/download/pwdgen-macos -o pwdgen
chmod +x pwdgen
./pwdgen -h
demo@ideatopia:~$ pwdgen -h
Password Generator 1.0.1
Generates passwords with various complexities
by ideatopia https://github.com/ideatopia
Usage: pwdgen [OPTIONS]
Options:
-l, --length <LENGTH> Length of the password [min: 8] [default: 12]
-q, --quantity <QUANTITY> Number of passwords to generate [default: 1]
-c, --complexity <COMPLEXITY> Level of complexity [default: secure] [possible values: simple, secure, complex]
-s, --special Include special characters
--hide Hide password from terminal display
--copy Copy password to clipboard
--export <EXPORT> Export's file path
--update Self update from latest release
-h, --help Print help
-V, --version Print version
Generate a secure password of length 16 with special characters and copy it to clipboard:
pwdgen -l 16 --complexity secure --special --copy
Generate 3 complex passwords of length 20, hide them from display, and copy to clipboard:
pwdgen -l 20 -q 3 --complexity complex --hide --copy
Generate 5 complex passwords of length 20, hide them from display, and export to passwords.txt:
pwdgen -l 20 -q 5 --complexity complex --hide --export passwords.txt
--copy
option to work properly.--help
option to view all available command-line options and usage information.This project is licensed under the MIT License - see the LICENSE file for details.