cp

package module
v0.0.0-...-abca85b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 7 Imported by: 0

README

cp

Cryptopals solutions.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RuneFrequencies map[rune]float64

Functions

func BreakRepeatingKeyXOR

func BreakRepeatingKeyXOR(ct []byte) []byte

func DetectECB

func DetectECB(cts [][]byte, bs int) ([]byte, bool)

func DetectSingleXOR

func DetectSingleXOR(cts [][]byte) []byte

func FindXORKey

func FindXORKey(ct []byte) byte

func Hamming

func Hamming(a, b []byte) int

func HexToBase64

func HexToBase64(s string) (string, error)

func HexXOR

func HexXOR(a, b string) (string, error)

func IsECB

func IsECB(ct []byte, bs int) bool

func NewECBDecrypter

func NewECBDecrypter(b cipher.Block) cipher.BlockMode

func ScoreEnglish

func ScoreEnglish(s string) float64

func XOR

func XOR(a, b []byte) []byte

func XORCycle

func XORCycle(a []byte, b []byte) []byte

func XORRepeat

func XORRepeat(a []byte, b byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL