https://github.com/ewhalgand/passtok-generator
Passtok is a CLI generator for generated password and secure token
https://github.com/ewhalgand/passtok-generator
cli cli-commands cli-tool password-generator token-generation
Last synced: 11 months ago
JSON representation
Passtok is a CLI generator for generated password and secure token
- Host: GitHub
- URL: https://github.com/ewhalgand/passtok-generator
- Owner: ewhalgand
- License: other
- Created: 2025-06-19T14:13:43.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-06-20T15:51:34.000Z (12 months ago)
- Last Synced: 2025-06-20T16:27:37.325Z (12 months ago)
- Topics: cli, cli-commands, cli-tool, password-generator, token-generation
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ptk - Password & Token Generator
**ptk** is a simple and secure command-line tool to generate passwords and tokens, built with Go and Cobra.
## ✨ Features
- Generate strong, random passwords or API tokens
- Control the output length and type
- Optional clipboard copy
- Cross-platform support (macOS, Linux, Windows)
- Lightweight and fast
## 📦 Installation
### 🔽 Download precompiled binaries
Download the latest `.zip` archive for your platform from the [Releases](https://github.com/ewhalgand/Passtok-generator/releases) page:
- [⬇️ macOS Intel](https://github.com/ewhalgand/Passtok-generator/releases/download/v1.0.0/ptk-mac-intel-1.0.0.zip)
- [⬇️ macOS Apple Silicon](https://github.com/ewhalgand/Passtok-generator/releases/download/v1.0.0/ptk-mac-arm64-1.0.0.zip)
- [⬇️ Linux](https://github.com/ewhalgand/Passtok-generator/releases/download/v1.0.0/ptk-linux-1.0.0.zip)
- [⬇️ Windows](https://github.com/ewhalgand/Passtok-generator/releases/download/v1.0.0/ptk-windows-1.0.0.zip)
Unzip the archive and place the binary in your `$PATH`.
## ⚙️ Usage
Here are the main commands available:
```bash
# Show package version
ptk --version
# Generate a password (default length, default type)
ptk gen
# Specify the type of string to generate (password or token)
ptk gen --type password
ptk gen --type token
# Specify the length of the generated string (e.g., 32 characters)
ptk gen --length 32
# Copy the generated result to the clipboard
ptk gen --copy
# Combine all options
ptk gen --type token --length 64 --copy
```