Arnau Muñoz Barrera
A simple yet illustrative Rust program that generates a password based on user-provided keywords.
The project focuses on interaction through the terminal, hashing, randomness, and core Rust concepts.
- Rust (v1.60 or higher recommended)
- Cargo (bundled with Rust)
- Any Rust-friendly IDE such as VS Code, IntelliJ IDEA with Rust plugin, or CLion.
This project demonstrates how to read and process user input at runtime using Rust’s standard library.
The program continuously collects keywords from the user, interpreting commands like Exit or Quit, and then generates a password using hashing and pseudo-random ordering.
It highlights Rust’s ownership model, safe input handling, and basic CLI user experience.
This project includes a simple password generator that uses:
- Hashing: Keywords are hashed using Rust's built-in
DefaultHasher. - Randomization: The hashed values are shuffled using
SliceRandomandthread_rng. - Composition: A final password is created by concatenating the first bytes of each hashed keyword.
This approach demonstrates how low-level hashing and random utilities can be combined in Rust to create deterministic-yet-random results.
Clone the repository:
git clone <repository-url>
cd <repository-directory>