steg

package
v0.0.0-...-5d27878 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package steg provides functions for steganography encoding and decoding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(carrier io.Reader, result io.Writer) error

Decode performs steganography decoding of Reader with previously encoded data by the Encode function and writes to result Writer.

func DecodeByFileNames

func DecodeByFileNames(carrierFileName string, resultName string) (err error)

DecodeByFileNames performs steganography decoding of data previously encoded by the Encode function. The data is decoded from file carrier and it is saved in separate new file

func Encode

func Encode(carrier io.Reader, data io.Reader, result io.Writer) error

Encode performs steganography encoding of data Reader in carrier and writes it to the result Writer encoded as PNG image.

func EncodeByFileNames

func EncodeByFileNames(carrierFileName, dataFileName, resultFileName string) (err error)

EncodeByFileNames performs steganography encoding of data file in carrier file and saves the steganography encoded product in new file.

func MultiCarrierDecode

func MultiCarrierDecode(carriers []io.Reader, result io.Writer) error

MultiCarrierDecode performs steganography decoding of Readers with previously encoded data chunks by the MultiCarrierEncode function and writes to result Writer. NOTE: The order of the carriers MUST be the same as the one when encoding.

func MultiCarrierDecodeByFileNames

func MultiCarrierDecodeByFileNames(carrierFileNames []string, resultName string) (err error)

MultiCarrierDecodeByFileNames performs steganography decoding of data previously encoded by the MultiCarrierEncode function. The data is decoded from carrier files and it is saved in separate new file NOTE: The order of the carriers MUST be the same as the one when encoding.

func MultiCarrierEncode

func MultiCarrierEncode(carriers []io.Reader, data io.Reader, results []io.Writer) error

MultiCarrierEncode performs steganography encoding of data Reader in equal pieces in each of the carriers and writes it to the result Writers encoded as PNG images.

func MultiCarrierEncodeByFileNames

func MultiCarrierEncodeByFileNames(carrierFileNames []string, dataFileName string, resultFileNames []string) (err error)

MultiCarrierEncodeByFileNames performs steganography encoding of data file in equal pieces in each of the carrier files and saves the steganography encoded product in new set of result files.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL