Random Hash QR Generator
Generate unique salted URLs and display them as QR codes in the terminal.
Usage
code
/random-hash <identifier>
Example: /random-hash erik-1246 generates a URL like https://example.com/user/erik-1246-@92s_1!
Execution
Run the script with uv:
bash
uv run --with qrcode scripts/generate_qr.py <identifier> [--domain DOMAIN] [--salt-length N]
Arguments:
- •
identifier(required): Base identifier for the URL (e.g.,erik-1246) - •
--domain: Target domain (default:example.com) - •
--salt-length: Length of random salt suffix (default: 7)
Output
The script displays:
- •The full salted URL
- •ASCII QR code in terminal
- •The salted identifier for reference