Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindSingleByteCiphertext ¶
FindSingleByteCiphertext finds the ciphertext most likely to be single-byte xor'd.
func RecoverRepeatingKey ¶
RecoverRepeatingKey recovers the key from a repeating-key xor'd ciphertext. It assumes the key size is between a and b inclusive.
It panics if a > b.
TODO: It also panics if 8 * b > len(ct). Fix that.
func RecoverSingleByteKey ¶
RecoverSingleByteKey recovers the key of a single-byte xor'd ciphertext.
func RecoverSingleBytePlaintext ¶
RecoverSingleBytePlaintext recovers the plaintext from a single-byte xor'd ciphertext.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.