func Base64Embed(imageB64In string, secret string) (imageB64Out string, err error) {
	// Load clean image
	var cleanImg StegImage
	err = cleanImg.LoadImageFromB64(imageB64In)
	if err != nil {
		log.Error(err)
		return "", err
	}

	// Embed secret
	err = cleanImg.DoStegEmbed(secret)
	if err != nil {
		log.Error(err)
		return "", err
	}

	// Write manipulated image to Base64
	imageB64Out, err = cleanImg.WriteNewImageToB64()
	if err != nil {
		log.Error(err)
		return "", err
	}
	return imageB64Out, nil
}
// Base64Embed performs a full base64 based embed
Base64Embed performs a full base64 based embed
// Base64Embed performs a full base64 based embed
func Base64Embed(imageB64In string, secret string) (imageB64Out string, err error) {
	var cleanImg StegImage
	err = cleanImg.LoadImageFromB64(imageB64In)
	if err != nil {
		log.Error(err)
		return "", err
	}
	err = cleanImg.DoStegEmbed(secret)
	if err != nil {
		log.Error(err)
		return "", err
	}
	imageB64Out, err = cleanImg.WriteNewImageToB64()
	if err != nil {
		log.Error(err)
		return "", err
	}
	return imageB64Out, nil
}
func Base64Embed ( imageB64In string , secret string ) ( imageB64Out string , err error ) { var cleanImg StegImage err = cleanImg . LoadImageFromB64 ( imageB64In ) if err != nil { log . Error ( err ) return " " , err } err = cleanImg . DoStegEmbed ( secret ) if err != nil { log . Error ( err ) return " " , err } imageB64Out , err = cleanImg . WriteNewImageToB64 ( ) if err != nil { log . Error ( err ) return " " , err } return imageB64Out , nil }
Base64Embed performs a full base64 based embed
Base64Embed performs a full base64 based embed
// Load clean image // Embed secret // Write manipulated image to Base64