8000 GitHub - edaywalid/cryptik: A simple and fast CLI tool for asymmetric encryption, decryption, key generation, and signing written in Go using the Cobra framework.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
forked from petqoo/cryptik

A simple and fast CLI tool for asymmetric encryption, decryption, key generation, and signing written in Go using the Cobra framework.

License

Notifications You must be signed in to change notification settings

edaywalid/cryptik

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cryptik CLI

A simple and fast CLI tool for asymmetric encryption, decryption, key generation, and signing — written in Go using the Cobra framework.


Installation

go install github.com/petqoo/cryptik@latest

Or build from source:

git clone https://github.com/petqoo/cryptik.git
cd cryptik
go build -o cryptik

Usage

cryptik [command] [subcommand] [flags]

Examples

Key Generation (RSA)

Generate RSA keypair and output as PEM files:

cryptik asym keygen --type rsa --bits 2048 --out ./keys

Asymmetric Encryption

Encrypt plaintext using a public key:

cryptik asym encrypt --input "secret message" --pubkey ./keys/public.pem
# or from file
cryptik asym encrypt --file ./secret.txt --pubkey ./keys/public.pem

Decrypt ciphertext using a private key:

cryptik asym decrypt --file ./secret.enc --privkey ./keys/private.pem

Asymmetric Signing

Sign a message or file using a private key:

cryptik asym sign --input "important data" --privkey ./keys/private.pem
# or from file
cryptik asym sign --file ./data.txt --privkey ./keys/private.pem

Verify a signature using a public key:

cryptik asym verify --input "important data" --pubkey ./keys/public.pem --signature ./sig.bin

Commands Overview

Run cryptik help [command] for detailed usage of each.

Command Description
asym keygen Generate RSA keypair
asym encrypt Encrypt with public key
asym decrypt Decrypt with private key
asym sign Sign with private key
asym verify Verify signature with public key
sym Symmetric encryption/decryption
hash Hash strings or files
hmac Generate/verify HMACs
encode / decode Encode/decode data in base64, hex, etc.

Flags

Global flags:

--help     Show help message
--version  Print version info

Each subcommand may also have its own flags (e.g., --input, --output, --privkey, --pubkey).

Documentation

For detailed documentation, usage examples, and API reference, visit the docs directory.


License

This project is licensed under the MIT License.
See the LICENSE file for details.


Issues and Support

If you encounter a bug or have a feature request:

Open an issue here: issues Please include:

  • Steps to reproduce
  • Expected vs actual behavior
  • Your OS and Go version
  • Any relevant logs or stack traces

Author

Made by Walid


About

A simple and fast CLI tool for asymmetric encryption, decryption, key generation, and signing written in Go using the Cobra framework.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%
0