Documentation
¶
Index ¶
- func CrackSingleByteXor(ciphertext []byte) ([]byte, byte, float32)
- func EnglishTextScorer(text []byte) float32
- func FillMatrixFromList(data []byte, colCount int) [][]byte
- func FindHammingDistance(a, b []byte) (int, error)
- func FindKey(keysize int, data []byte) []byte
- func FindNormalisedHammingDistance(a, b []byte) (float32, error)
- func ImportB64Data(filepath string) ([]byte, error)
- func ImportTxtLines(filepath string) [][]byte
- func RepeatingKeyXor(key, data []byte) []byte
- func SingleByteXOR(key byte, data []byte) []byte
- func Transpose(matrix [][]byte) [][]byte
- func XorBytes(a, b []byte) ([]byte, error)
- type IntFloatPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnglishTextScorer ¶
func FillMatrixFromList ¶
func FindHammingDistance ¶
func ImportB64Data ¶
func ImportTxtLines ¶
func RepeatingKeyXor ¶
func SingleByteXOR ¶
Types ¶
type IntFloatPair ¶
func FindBestKeySizes ¶
func FindBestKeySizes(ciphertext []byte, maxKeySize, samplesPerKeysize int) []IntFloatPair
Click to show internal directories.
Click to hide internal directories.