Versions in this module Expand all Collapse all v0 v0.1.0 Jul 19, 2026 Changes in this version + var ErrNoFormat = errors.New("crypha: a carrier format is required") + var ErrTechniqueOnNonPDF = errors.New("crypha: technique only applies to the pdf format") + var ErrUndetected = errors.New("crypha: no crypha payload detected; pass a format to force a carrier") + var ErrUnknownFormat = errors.New("crypha: unknown carrier format") + var ErrUnknownTechnique = errors.New("crypha: unknown pdf technique") + func Capacity(format string, cover io.Reader) (int, error) + func EnvelopeSize(data []byte, opts payload.Options) (int, error) + func Overhead(encrypted bool) int + func ResolveCarrier(format, technique string) (carrier.Carrier, error) + func Techniques(format string) []string + type CapacityRow struct + Capacity int + Err error + Format string + func CapacityAll(cover []byte) []CapacityRow + type FormatInfo struct + Name string + Techniques []string + func Catalog() []FormatInfo + type HideRequest struct + Cover io.Reader + Format string + Options payload.Options + Out io.Writer + Payload []byte + Technique string + type HideResult struct + Compressed bool + Encrypted bool + EnvelopeBytes int + Format string + PayloadBytes int + Technique string + func Hide(req HideRequest) (HideResult, error) + type RevealRequest struct + Format string + Passphrase []byte + Stego []byte + type RevealResult struct + Data []byte + Encrypted bool + Format string + func Reveal(req RevealRequest) (RevealResult, error)