Documentation ¶
Index ¶
- Constants
- func A85DecodeString(src string) ([]byte, error)
- func A85EncodeToString(src []byte) string
- func Chunk(s string, chunkSize int) []string
- func DecodeShards(shardWords []string, settings FormatSettings) ([][]byte, error)
- func FormatShards(shards [][]byte, settings FormatSettings) []string
- func LogIfFatal(err error)
- func ReadPassword() (string, error)
- func StripSep(s string, sep string) string
- type EncodingType
- type FormatSettings
- type SplitSettings
- type StdInContainer
Constants ¶
View Source
const ( EncodeRaw = "raw" EncodeAbcAlt = "abcAlt" EncodeABC = "ABC" EncodeHex = "hex" EncodeBase32 = "base32" EncodeBase64 = "base64" EncodeBase85 = "base85" )
Variables ¶
This section is empty.
Functions ¶
func A85DecodeString ¶
Ascii85 is still in development!
func DecodeShards ¶
func DecodeShards(shardWords []string, settings FormatSettings) ([][]byte, error)
func FormatShards ¶
func FormatShards(shards [][]byte, settings FormatSettings) []string
func LogIfFatal ¶
func LogIfFatal(err error)
func ReadPassword ¶
Read password from the terminal. Prompts user 2x for consistency.
Types ¶
type EncodingType ¶
type EncodingType string
type FormatSettings ¶
type FormatSettings struct { EncodingType string // binary-to-string encoding, e.g. hex, base32 Sep string // separator between bytes RecordSep string // separator between records/shards FieldSize int // size of each field, eg 2-> DE:AD:BE:EF FilenamePat string // pattern (in typical sprintf notation) for filenames }
func ParseFormatSettings ¶
func ParseFormatSettings(cmd *cobra.Command) (settings FormatSettings, err error)
type SplitSettings ¶
type StdInContainer ¶
func Get_stdin ¶
func Get_stdin() (StdInContainer, error)
Directories ¶
Path | Synopsis |
---|---|
ABC base-16 encoding It's just hex encoding but with all alphabetic, no numerals Advantage is being able to do things like book steganography easily (numbers are much less frequent)
|
ABC base-16 encoding It's just hex encoding but with all alphabetic, no numerals Advantage is being able to do things like book steganography easily (numbers are much less frequent) |
Click to show internal directories.
Click to hide internal directories.