leaf

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

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

Go to latest
Published: Sep 12, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

hide-a-leaf

Requirement

  • Go 1.14+

Installation

you need to have Go's runtime installed. Please install it by referring to the [Official Site] (https://golang.org/) in advance.

go get github.com/135yshr/hide-a-leaf
go install github.com/135yshr/hide-a-leaf

Usage

The program provides two functions, an encode function that hides the data you want to hide in the specified PNG image and a decode function that retrieves the hidden data from the image.

encode

If you specify the original PNG file and the file you want to hide as parameters, encode.png will be created.

hide-a-leaf encode <cover file> <hide data>

If you want to hide the character string, specify the -text parameter and handle the second parameter as a character string.

hide-a-leaf -text encode {元になるPNGファイル} {隠したい文字列}
decode

If you specify a PNG file that hides the data you do not want to show and perform decoding, decode.png will be created.

hide-a-leaf decode <stego file>

If you want to get it as a string, specify the -text parameter.

hide-a-leaf -text decode <stego file>

Author

License

hide-a-leaf is under Apache 2.0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(stego image.Image) []byte

Decode - 秘密データが埋め込まれた画像からデータを取得する

func Encode

func Encode(cover image.Image, data []byte) (image.Image, error)

Encode - cover に data を隠す

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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