moobi

Crates.iomoobi
lib.rsmoobi
version0.2.0
created_at2025-12-08 21:45:22.761322+00
updated_at2025-12-08 21:45:22.761322+00
descriptionA random password generation CLI tool.
homepage
repository
max_upload_size
id1974422
size12,539
Ji Younghyun (younghyun1)

documentation

README

Random Password Generator

A small CLI tool written in Rust that generates random passwords with configurable length and optional special characters.

Features

  • Specify password length (default: 12, minimum: 8)
  • Optionally include special characters
  • Ensures at least one character from each selected category:
    • Lowercase letters
    • Uppercase letters
    • Digits
    • Special characters (when enabled)

Usage

# Default: 12-character password, no special characters
moobi

# 16-character password
moobi --len 16

# 20-character password with special characters
moobi --len 20 --spec-char

Short flags are also supported:

moobi -l 16 -s

If the requested length is less than 8, the program prints an error and exits:

Error: Password length must be at least 8

Build and Run

cargo build --release
./target/release/moobi --len 16 --spec-char

Command-Line Options

  • -l, --len <LEN>
    Length of the password to generate
    Default: 12
    Minimum: 8

  • -s, --spec-char
    Include special characters in the password
    Default: false

Commit count: 0

cargo fmt