set1

package
v0.0.0-...-af4e1f5 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2020 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BestPT

func BestPT(ct []byte) ([]byte, byte)

func DecryptAES128ECB

func DecryptAES128ECB(ct []byte, key []byte) (pt []byte, err error)

func DecryptRepeatXOR

func DecryptRepeatXOR(ct []byte, key []byte) []byte

FIXME: both functions can be merged

func FindKey

func FindKey(data []byte, keysize int) []byte

func FixedXOR

func FixedXOR(fst string, snd string) (string, error)

func Hex2B64

func Hex2B64(in string) (string, error)

Hex2B64 converts a hexadecimal string to its base64 representation

Types

type PTKeyPair

type PTKeyPair struct {
	PT    []byte
	Key   byte
	Score float64
}

Jump to

Keyboard shortcuts

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