Documentation ¶
Index ¶
- func Float64Outliers(input []float64) []float64
- func GuessBlockSize(a []byte) int
- func HammingDistance(a, b []byte) int
- func MaxInt(a, b int) int
- func MinInt(a, b int) int
- func SingleXorBrute(input []byte, depth int) (byte, []byte)
- func SingleXorTop(input []byte, depth int) []byte
- func ToBlocks(input []byte, bs int) [][]byte
- func Xor(a, b []byte) []byte
- func XorBrute(a []byte) ([]byte, []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float64Outliers ¶
float64Outliers given a slice of float64 values will return those which are the highest number of standard deviations from the mean, sort of.
func GuessBlockSize ¶
GuessBlockSize use HammingDistance to guess locksize
func HammingDistance ¶
HammingDistance the distance between a and b. xor then pop count.
func SingleXorBrute ¶
SingleXorBrute is a convience wrapper around SingleXorTop
func SingleXorTop ¶
SingleXorTop returns the top candidate decrypt xor keys, assuming english text.
func ToBlocks ¶
ToBlocks splits a slice into an array of equal sized slices last block will include any data send beyond block size boundary
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.