stego

package module
v0.0.0-...-9a1be84 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 9 Imported by: 0

README

steganography

golang Implementation LSB steganography any data

inspired by stegify

Why duplicate implementations, Because I want to hide any data in the image, not just the image.

This is just the beginning, I hope to get your advice

Install

go get -v -u github.com/zhcppy/steganography/cmd/stego

or

git clone https://github.com/zhcppy/steganography

make install

Use

stego -h

Extension

Implementing interface about Steganography

type Steganography interface {
	GetCarrierFileName() string // get image carrier
	InputData() ([]byte, error)
	OutputData(data []byte) error
}

About me(https://zhcppy.github.io)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(s Steganography) (message string, err error)

func Encode

func Encode(s Steganography) (err error)

Types

type FileCarrier

type FileCarrier struct {
	CarrierFileName  string
	ResourceFileName string
}

func (*FileCarrier) GetCarrierFileName

func (s *FileCarrier) GetCarrierFileName() string

func (*FileCarrier) InputData

func (s *FileCarrier) InputData() ([]byte, error)

func (*FileCarrier) OutputData

func (s *FileCarrier) OutputData(data []byte) error

type Steganography

type Steganography interface {
	GetCarrierFileName() string // get image carrier
	InputData() ([]byte, error)
	OutputData(data []byte) error
}

type TextCarrier

type TextCarrier struct {
	CarrierFileName string
	TextContent     string
}

func (*TextCarrier) GetCarrierFileName

func (s *TextCarrier) GetCarrierFileName() string

func (*TextCarrier) InputData

func (s *TextCarrier) InputData() ([]byte, error)

func (*TextCarrier) OutputData

func (s *TextCarrier) OutputData(data []byte) error

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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