stegify v1.2 releases: hiding any file within an image

stegify

stegify

stegify is a simple command-line tool capable of fully transparent hiding any file within an image. This technique is known as LSB (Least Significant Bit) steganography.

Changelog v1.2

  • Encoding/Decoding data file in/from multiple carriers.

Install

$ go get -u github.com/DimitarPetrov/stegify

Use

As a command-line tool

$ stegify -op encode -carrier <file-name> -data <file-name> -result <file-name>
$ stegify -op decode -carrier <file-name> -result <file-name>

When encoding, the file with the name given to the flag -data is hidden inside the file with the name given to flag -carrier and the resulting file is saved in a new file in the current working directory under the name given to flag -result. The file extension of result file is inherited from the carrier file and must not be specified explicitly in the -result flag.

When decoding, given a file name of a carrier file with previously encoded data in it, the data is extracted and saved in a new file in the current working directory under the name given to the flag -result. The resulting file won’t have any file extension and therefore it should be specified explicitly in -result flag.

In both cases, the flag -result could be omitted and it will be used the default file name: result

Programmatically in your code

stegify can be used programmatically too and it provides easy to use functions working with file names or raw Readers and Writers. You can visit godoc under steg package for details.

Demonstration

Carrier Data Result
Original File Encoded File Encoded File

The Result file contains the Data file is hidden in it. And as you can see it is fully transparent.

Copyright (c) 2018 Dimitar Petrov

Source: https://github.com/DimitarPetrov/