keycrypt is a minimalist command-line utility written in Go for generating
cryptographically secure random keys. It offers options for generating
8-byte, 16-byte, or 32-byte hexadecimal keys, making it suitable for quick
key generation for various applications.
- Secure Key Generation: Utilizes
crypto/randfor robust, cryptographically secure random key generation. - Flexible Key Lengths: Supports 8, 16, and 32-byte key outputs.
- Clipboard Integration: Designed to be easily piped with OS-specific clipboard utilities for instant use.
To generate a key, simply run the keycrypt executable. By default, it will
output a 32-byte hexadecimal key.
keycrypt-8: Generate an 8-byte key.-16: Generate a 16-byte key.-32: Generate a 32-byte key (default).
If multiple length flags are provided, the first one encountered will take precedence.
Generate a 16-byte key:
keycrypt -16Integrate with your system's clipboard for immediate use:
- Windows:
keycrypt -16 | clip - macOS:
keycrypt | pbcopy - Linux (requires
xclip):keycrypt | xclip -selection clipboard
-
Clone the repository (or download the
main.gofile):git clone https://github.com/theaaronn/keycrypt.git cd keycrypt -
Build the executable:
go build -o keycrypt main.go
-
Optional: Move to PATH: For system-wide access, move the
keycryptexecutable to a directory included in your system'sPATH(e.g.,/usr/local/binon Linux/macOS, or a directory added toPathenvironment variable on Windows).# On Linux/macOS sudo mv keycrypt /usr/local/bin/
go install github.com/theaaronn/keycrypt/v3@latestThis project is open source and available under the MIT License.