Documentation ¶
Index ¶
- Variables
- func Base64Embed(imageB64In string, secret string) (imageB64Out string, err error)
- func Base64Extract(imageB64In string) (secret string, err error)
- func SetLoggingLevel(level logging.Level)
- type StegImage
- func (s *StegImage) DoStegEmbed(secretIn string) (err error)
- func (s *StegImage) DoStegExtract() (secretOut string, err error)
- func (s *StegImage) LoadImageFromB64(b64Img string) (err error)
- func (s *StegImage) LoadImageFromFile(imgPath string) error
- func (s *StegImage) WriteNewImageToB64() (b64Img string, err error)
- func (s *StegImage) WriteNewImageToFile(imgPath string) (err error)
Constants ¶
This section is empty.
Variables ¶
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 ¶
Base64Embed performs a full base64 based embed
func Base64Extract ¶
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 ¶
DoStegEmbed embeds the given secret into the loaded image
func (*StegImage) DoStegExtract ¶
DoStegExtract retrieves the embedded secret from the loaded image
func (*StegImage) LoadImageFromB64 ¶
LoadImageFromB64 loads the given base64 encoded image into the StegImage structure
func (*StegImage) LoadImageFromFile ¶
LoadImageFromFile loads the given image into the StegImage structure
func (*StegImage) WriteNewImageToB64 ¶
WriteNewImageToB64 base64 encodes the image held in StegImage.newImg and returns it as a string
func (*StegImage) WriteNewImageToFile ¶
WriteNewImageToFile outputs the image held in StegImage.newImg to the imgPath given