Skip to content

KDT2006/go-steg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steganography Tool in Go

A robust command-line tool built in Go for encoding and decoding secret messages within images. This project was developed as a learning exercise to explore working with images, cryptography, and building CLI tools in Go.


Features

  • Message Encoding: Embed secret messages into image files securely.
  • AES Encryption: Protect embedded messages using encryption.
  • Message Decoding: Extract and decrypt messages from encoded images.
  • Multiple Image Format Support: Works with PNG and JPEG image formats for now.
  • User-Friendly CLI: Intuitive command-line interface for encoding, decoding, and configuring options.
  • File Input and Output: Encode messages directly from files and output decoded messages to files.
  • Input Validation: Graceful handling of invalid or missing inputs.
  • Error Handling and Logging: Detailed logs for troubleshooting.

Installation

Clone the repository and build the project:

git clone https://github.com/KDT2006/go-steg.git
cd go-steg/cmd/gosteg
go build

Usage

Encode a message

# Plain text message
./gosteg -mode encode -i image.png -o encoded.png -m "Secret Message"

# Message from file
./gosteg -mode encode -i image.png -o encoded.png -mf secret.txt

# Encrypted message
./gosteg -mode encode -i image.png -o encoded.png -m "Secret" -k "encryption-key"

Decode a message

# Simple decoding
./gosteg -mode decode -i encoded.png

# Decode to file
./gosteg -mode decode -i encoded.png -o decoded.txt

# Decrypt with key
./gosteg -mode decode -i encoded.png -k "encryption-key"

License

MIT License

About

A command-line steganography tool written in Go, developed as a learning project to explore image processing, cryptography, and CLI development.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages