Documentation ¶
Index ¶
- Constants
- func ByteSliceToBase64(byteSlice []byte) string
- func CountBitsInByte(b byte) int
- func DecryptAes128Ecb(data, key []byte) []byte
- func GetCryptopalsData(url string) string
- func HammingDistanceByte(b1, b2 byte) int
- func HammingDistanceBytes(b1, b2 []byte) int
- func HexStringToByteSlice(hexString string) []byte
- func NextByteOfRepeatingKey(key []byte) func() byte
- func RepeatingKeyXor(key, message string) []byte
- func RepeatingKeyXorString(key, message string) string
- func ScoreString(str string) int
- func Transpose(bytes []byte, length int) [][]byte
- func Xor(a, b []byte) []byte
- func XorHexStrings(hexString1, hexString2 string) string
- func XorOneByte(key byte, srcBytes []byte) []byte
- type CryptopalsResult
- type KeySizeHammingDistance
Constants ¶
View Source
const RUNES = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz123456789~!@#$%^&*()_+`-={}|[]\\,./<>?:\";' "
Variables ¶
This section is empty.
Functions ¶
func ByteSliceToBase64 ¶
func CountBitsInByte ¶
func DecryptAes128Ecb ¶
func GetCryptopalsData ¶
func HammingDistanceByte ¶
func HammingDistanceBytes ¶
func HexStringToByteSlice ¶
func NextByteOfRepeatingKey ¶
func RepeatingKeyXor ¶
func RepeatingKeyXorString ¶
func ScoreString ¶
func XorHexStrings ¶
func XorOneByte ¶
Types ¶
type CryptopalsResult ¶
func BruteXorOneByte ¶
func BruteXorOneByte(hexBytes []byte) CryptopalsResult
func BruteXorOneByteString ¶
func BruteXorOneByteString(hexString string) CryptopalsResult
type KeySizeHammingDistance ¶
Click to show internal directories.
Click to hide internal directories.