MCPcopy Index your code
hub / github.com/08820048/xpwd

github.com/08820048/xpwd @v1.0.3

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.3 ↗ · + Follow
17 symbols 25 edges 2 files 6 documented · 35% updated 16mo agov1.0.3 · 2024-06-03★ 691 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Crates.io License rustc 1.77.0 Documentation GitHub stars GitHub forks GitHub issues Contributors

A command-line password generator built with Rust, offering a swift and effortless solution for creating passwords of varying strengths. Cure your password creation woes with a single command!

Installation

Install using Cargo

Please ensure that your operating system has Rust and the Cargo development environment properly configured.

cargo install xpwd //Install the latest version by default

Install using Scoop

If you haven't installed Scoop, please refer to the official website for installation (https://scoop.sh/#/). Then, execute the following command to install xpwd

scoop install xpwd

More installation methods are coming soon...


CLI Usage

$ xpwd -h
               _______           ______
|\     /|     (  ____ )|\     /|(  __  \
( \   / )     | (    )|| )   ( || (  \  )
 \ (_) /_____ | (____)|| | _ | || |   ) |
  ) _ ((_____)|  _____)| |( )| || |   | |
 / ( ) \      | (      | || || || |   ) |
( /   \ )     | )      | () () || (__/  )
|/     \|     |/       (_______)(______/

Command line arguments structure

Options:
  -l, --len <LEN>            Length of password [default: 8]
  -c, --complex <COMPLEX>    Complexity of the password [default: m]
  -p, --password <PASSWORD>  Check strength of your password
  -h, --help                 Print help
  -V, --version              Print version


$ xpwd -l 8 -c s
+-----+---------+----------+
| Len | complex | password |
+-----+---------+----------+
| 8   | simple  | ld0an6qr |
+-----+---------+----------+
🛡️ ■■■■■■■■■■■■■■■■■■■■ moderate

$ xpwd -l 16 -c m
+-----+---------+------------------+
| Len | complex | password         |
+-----+---------+------------------+
| 16  | medium  | DwkYFtnVRhYoVAgk |
+-----+---------+------------------+
🛡️ ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■ very strong

$ xpwd -l 5 -c c
+-----+---------+----------+
| Len | complex | password |
+-----+---------+----------+
| 5   | complex | RtVUj    |
+-----+---------+----------+
🛡️ ■■■■■■■■■■■■■ weak

$ cargo run -- -l 3 -c s
+-----+---------+----------+
| Len | complex | password |
+-----+---------+----------+
| 3   | simple  | pl9      |
+-----+---------+----------+
🛡️ ■■■■■■■■ very weak

The generated password will be automatically copied to the clipboard by default, allowing you to directly paste and use it.


Futures

Here are the features and improvements we plan to add to the tool in the future. If you have any suggestions or ideas, feel free to share!

  1. Quick Password Generation
  2. ✅ Rapidly generates random passwords of specified lengths and strengths.
  3. Password Strength Check
  4. ✅ Assesses the strength of user-inputted passwords, providing visual feedback.
  5. Customizable Password Policy
  6. ⌛ Enables users to customize password generation rules, such as mandating the inclusion of uppercase letters, lowercase letters, numbers, special characters, and their minimum occurrences.
  7. Password History Management
  8. ⌛ Offers a secure means for users to store and manage their previously generated passwords (with emphasis on encrypted storage), including features to flag frequently used passwords and search for specific ones.
  9. Password Expiration Reminder
  10. ⌛ Implements a notification system that alerts users, based on their settings (e.g., every 90 days), when to change passwords for specific websites or applications.
  11. Password Synchronization & Backup
  12. ⌛ Provides cloud synchronization functionality, allowing users to sync their password database across multiple devices, ensuring secure access while facilitating cross-platform use.
  13. Security Assessment Report
  14. ⌛ Generates detailed reports on password security, analyzing the distribution of password strengths and reuse within the user's database, offering improvement suggestions.
  15. Password Leak Check
  16. ⌛ Integrates with an API (like Have I Been Pwned) to check if user-supplied passwords have been exposed in known data breaches, enhancing user awareness of password security.
  17. Random Passphrase Generation
  18. ⌛ In addition to traditional random strings, includes a dictionary-based passphrase generator that produces longer but more memorable passwords, such as “CorrectHorseBatteryStaple”.
  19. Multilingual Password Support
    • ⌛ Expands character set support to allow for passwords containing non-English characters, catering to international users with specific needs.
  20. Graphical User Interface
    • ⌛ Considers developing a graphical user interface (GUI) to enhance the user experience, particularly for those unfamiliar with command-line operations.
  21. Plug-in Based Development
    • ⌛ Develops related plugins to enrich usage scenarios, including browser plugins, IDE integrations, and apps for multiple platforms.
  22. Educational Module
    • ⌛Incorporates educational content on password security, covering common password cracking methods and guidelines for creating and managing strong passwords, to boost user awareness.

License

This project is licensed under the MIT License - see the LICENSE file for details.


about

In order to provide a more efficient and convenient user experience, the original project quick_pswd (https://crates.io/crates/quick_pswd) has officially been renamed to xpwd.

Core symbols most depended-on inside this repo

print_data_tables
called by 2
src/lib.rs
print_password_strength
called by 2
src/lib.rs
print_infos
called by 1
src/main.rs
gen_password
called by 1
src/lib.rs
evaluate_password_strength
called by 1
src/lib.rs
load_dictionary
called by 1
src/lib.rs
generate_random_passphrase
called by 1
src/lib.rs
capitalize_first_letter
called by 1
src/lib.rs

Shape

Function 12
Class 4
Enum 1

Languages

Rust100%

Modules by API surface

src/lib.rs10 symbols
src/main.rs7 symbols

For agents

$ claude mcp add xpwd \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact