libsteg

package module
v0.0.0-...-c798097 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

README

libsteg - Steganography Library in Go

Go Report Card

This project was created as a means to further my learning of the Go programming language.

The library performs Least Significant Bit (LSB) Steganography on PNG images

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CleanB64Image = "" /* 78300-byte string literal not displayed */

CleanB64Image is the base64 string of a valid clean png file to be used in testing

Functions

func Base64Embed

func Base64Embed(imageB64In string, secret string) (imageB64Out string, err error)

Base64Embed performs a full base64 based embed

func Base64Extract

func Base64Extract(imageB64In string) (secret string, err error)

Base64Extract performs a full base64 based extract

func SetLoggingLevel

func SetLoggingLevel(level logging.Level)

SetLoggingLevel sets the libsteg logging level

Types

type StegImage

type StegImage struct {
	// contains filtered or unexported fields
}

StegImage type holds all vars needed for image manipulation

func (*StegImage) DoStegEmbed

func (s *StegImage) DoStegEmbed(secretIn string) (err error)

DoStegEmbed embeds the given secret into the loaded image

func (*StegImage) DoStegExtract

func (s *StegImage) DoStegExtract() (secretOut string, err error)

DoStegExtract retrieves the embedded secret from the loaded image

func (*StegImage) LoadImageFromB64

func (s *StegImage) LoadImageFromB64(b64Img string) (err error)

LoadImageFromB64 loads the given base64 encoded image into the StegImage structure

func (*StegImage) LoadImageFromFile

func (s *StegImage) LoadImageFromFile(imgPath string) error

LoadImageFromFile loads the given image into the StegImage structure

func (*StegImage) WriteNewImageToB64

func (s *StegImage) WriteNewImageToB64() (b64Img string, err error)

WriteNewImageToB64 base64 encodes the image held in StegImage.newImg and returns it as a string

func (*StegImage) WriteNewImageToFile

func (s *StegImage) WriteNewImageToFile(imgPath string) (err error)

WriteNewImageToFile outputs the image held in StegImage.newImg to the imgPath given

Jump to

Keyboard shortcuts

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