https://github.com/mogottsch/vanity-ssh-rs
Generate vanity ssh keys
https://github.com/mogottsch/vanity-ssh-rs
rust ssh vanity
Last synced: 5 months ago
JSON representation
Generate vanity ssh keys
- Host: GitHub
- URL: https://github.com/mogottsch/vanity-ssh-rs
- Owner: mogottsch
- License: mit
- Created: 2025-06-14T12:52:03.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-14T14:31:09.000Z (about 1 year ago)
- Last Synced: 2025-06-14T14:31:23.563Z (about 1 year ago)
- Topics: rust, ssh, vanity
- Language: Rust
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vanity-ssh-rs
Generate SSH key pairs with custom patterns in the public key.

## Install
```bash
cargo install vanity-ssh-rs
```
## Usage
```bash
vanity-ssh-rs [ ...] [-t ] [--ntfy ]
```
**Patterns:**
- Plain text: matches suffix (e.g., `yee` matches keys ending with "yee")
- `/regex/`: matches regex pattern (e.g., `/(?i)hello/` for case-insensitive "hello")
- Multiple patterns: any match will be accepted
**Options:**
- `-t `: Number of threads (defaults to CPU count)
- `--ntfy `: Send notification to [ntfy.sh](https://ntfy.sh) topic when found
## Examples
```bash
# Find a key ending with "yee"
vanity-ssh-rs yee
# Match any of several patterns
vanity-ssh-rs yee woo "/(?i)hello/"
# With notification when found
vanity-ssh-rs yee --ntfy mytopic
# Use more threads for faster generation
vanity-ssh-rs yee -t 8
```
Generated keys are saved to the `out/` directory.
## Benchmarking
Run benchmarks to measure key generation performance:
```bash
cargo bench --bench key_generation
```