stego

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(parts []Part) ([]byte, error)

func Decrypt

func Decrypt(key []byte, cipherText []byte) ([]byte, error)

func Encrypt

func Encrypt(key []byte, message []byte) ([]byte, error)

func GenerateMasterKey

func GenerateMasterKey() ([]byte, error)

Types

type Part

type Part struct {
	Version   byte
	Parts     byte
	Threshold byte
	Tag       byte
	Content   []byte
}

func NewPart

func NewPart(version, parts, threshold, tag byte, content []byte) Part

func NewPartFromContent added in v0.2.0

func NewPartFromContent(content []byte) (Part, error)

func Split

func Split(secret []byte, parts, threshold uint8) ([]Part, error)

func (Part) Base64

func (p Part) Base64() string

func (Part) Bytes

func (p Part) Bytes() []byte

Jump to

Keyboard shortcuts

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