steggo

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

README

steggo

StegGo want to be StegCloak‘s go version

使用密码安全地把信息隐藏在不可见字符中。它可用于安全地为字符串、网页上的不可见脚本、社交媒体上的文本或任何其他隐蔽通信添加水印。

安装

go get github.com/asjdf/steggo 

使用

import "github.com/asjdf/steggo"


func main() {
    plain := []byte("steggoo")
    encode, err := Encode(plain)
    decode, err := Decode(encode)
}

Documentation

Index

Constants

View Source
const (
	BIT00   = "\u200c"
	BIT01   = "\u200d"
	BIT10   = "\u2060"
	BIT11   = "\u2062"
	BIT0101 = "\u2063"
	BIT0000 = "\u2064"
)

HuffmanConvertMap

Variables

View Source
var HuffmanMap = map[uint8]string{
	0x00: BIT00,
	0x01: BIT01,
	0x02: BIT10,
	0x03: BIT11,
}
View Source
var UnHuffmanMap = map[string]uint8{
	BIT00: 0x00,
	BIT01: 0x01,
	BIT10: 0x02,
	BIT11: 0x03,
}

Functions

func Decode

func Decode(s string, key ...[]byte) ([]byte, error)

func Encode

func Encode(s []byte, key ...[]byte) (string, error)

func Huffman

func Huffman(b []byte) string

Huffman to convert byte to string

func UnHuffman

func UnHuffman(in string) (b []byte, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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