Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StdEncoding = NewEncoding(lEncodeStd, rEncodeStd)
StdEncoding is the standard chaocipher encoding.
Functions ¶
This section is empty.
Types ¶
type Encoding ¶
type Encoding struct {
// contains filtered or unexported fields
}
An Encoding is a radix 62 encoding/decoding scheme, defined by a 62-character alphabet.
func NewEncoding ¶
NewEncoding returns a new padded Encoding defined by the given alphabet, which must be a 62-byte string that does not contain the padding character or CR / LF ('\r', '\n').
func (*Encoding) DecodeString ¶
DecodeString returns the bytes represented by the chao string s.
func (*Encoding) EncodeToString ¶
EncodeToString returns the chao encoding of src.
Click to show internal directories.
Click to hide internal directories.