Skip to content

Conversation

@RockyRx
Copy link

@RockyRx RockyRx commented Oct 20, 2025

This PR adds two new utility tools:

JWT Tool

  • Generate JWT tokens with custom claims
  • Validate JWT tokens and extract claims
  • Support for different algorithms (HS256, RS256, etc.)

Password Tool

  • Generate secure passwords with customizable options
  • Support for different character sets and length requirements
  • Configurable complexity options

Changes

  • Added new dependencies: jsonwebtoken, rand, argon2
  • Updated README.md with documentation for new tools
  • Integrated tools into main application

- Add JWT token generation and validation tool
- Add password generation tool with customizable options
- Update Cargo.toml with new dependencies (jsonwebtoken, rand, argon2)
- Update README.md with new tool documentation
- Add new tools to main.rs and tools/mod.rs
long_about = "Generate cryptographically secure passwords with customizable options.\n\
Supports random character-based passwords and memorable passphrases."
)]
pub struct PasswordTool {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@RockyRx We already have a tool that generates cryptographically secure secrets/tokens.

Generate a cryptographically secure random token.

Usage: ut token [OPTIONS]

Options:
  -l, --length <LENGTH>  Length of the token to generate [default: 64]
      --no-uppercase     Do not include uppercase letters
      --no-lowercase     Do not include lowercase letters
      --no-numbers       Do not include numbers
      --no-symbols       Do not include symbols
  -h, --help             Print help
[I] ksdme@bunny ~/m/ut (main)>

Maybe we can just add password as an alias for it instead.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for revewing my changes. Yes, that makes sense. I have removed the separate password tool and introduced an alias within the existing cryptographically tool to handle password-related functionality.

@ksdme
Copy link
Owner

ksdme commented Oct 21, 2025

The JWT tool looks good for the most part.

ogunawardena and others added 2 commits October 22, 2025 09:17
- Remove separate password tool implementation
- Add 'password' as alias to existing token tool
- Update README.md to reflect password as alias
- Keep JWT tool as it provides unique functionality
- Maintain all existing token tool functionality
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants