stegolsb

package
v0.0.0-...-48f9e01 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(img image.Image) (string, error)

Decode tries to extract the hidden message from an image

func Encode

func Encode(img image.Image, message string, bitsPerByte int) (image.Image, error)

Encode encodes the message in the given image using the given number of bits per byte bitsPerByte: number of bits used to encode in a byte, must be within [1,8]

func LSBEncode

func LSBEncode(img image.Image, message string) (image.Image, error)

LSBEncode encodes the message in the given image using LSB

func MaxEncodeSize

func MaxEncodeSize(img image.Image, bitsPerByte int) (uint32, error)

MaxEncodeSize calculates the maximum size of the encoded message in the given image when using the given number of bits per byte to encode numEncodeBits: number of bits used to encode in a byte, must be within [1,8]

func MaxLSBEncodeSize

func MaxLSBEncodeSize(img image.Image) (uint32, error)

MaxLSBEncodeSize calculates the maximum size of the encoded message in the given image using LSB

Types

This section is empty.

Jump to

Keyboard shortcuts

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