jsteg: lukechampine.com/jsteg Index | Files

package jsteg

import "lukechampine.com/jsteg"

Package jsteg implements JPEG steganography.


Package Files

fdct.go huffman.go reader.go scan.go writer.go


var ErrTooSmall = errors.New("image is too small to hold the requested payload")

ErrTooSmall is returned if the image is too small to hold the requested payload.

func Hide Uses

func Hide(w io.Writer, m image.Image, data []byte, o *jpeg.Options) error

Hide writes the Image m to w in JPEG 4:2:0 baseline format with the given options, hiding the bits of data in the LSB of each block. Default parameters are used if a nil *Options is passed.

func Reveal Uses

func Reveal(r io.Reader) ([]byte, error)

Reveal reads a JPEG image from r and returns the accumulated LSBs of each block.

Package jsteg imports 6 packages (graph). Updated 2019-06-03. Refresh now. Tools for package owners.