png_hide 0.0.2 png_hide: ^0.0.2 copied to clipboard
Hide text and other content into PNG files. The passed content gets encoded as Base64, then compressed using the LZW algorithm.
PngHide #
Overview #
A Dart library to hide text in PNG images. The procedure for encoding is the following:
-
The input gets encoded into Base64 format
-
The encoded input gets compressed, using the LZW algorithm
-
The resuting bytes are hidden in the source-image, 1 Byte / Pixel
Samples #
Encode text into a copy of input.png and save it to output.png #
String text = "hallo ich bin ein text";
File input = File("assets/input.png");
File output = File("assets/output.png");
PngEncoder encoder = PngEncoder(input, output);
encoder.encode(text);