Documentation
¶
Index ¶
- func AESCBCDecrypt(enc, key, iv []byte, unPad bool) []byte
- func AESCBCEncrypt(pt, key, iv []byte) []byte
- func AESECBDecrypt(enc, key []byte) []byte
- func AESECBEncrypt(pt, key []byte) []byte
- func Check(e error)
- func ChunkByteArray(src []byte, chunksize int, pad bool) [][]byte
- func DetectECB(inp []byte, size int) (map[string]int, float64)
- func FromBase64(inp string) []byte
- func FromHex(inp string) []byte
- func HammingDistance(orig, new []byte) int
- func PKCS7Pad(block []byte, size int) [][]byte
- func RandBytes(size int) []byte
- func ScoreString(inp []byte) (float64, float64)
- func StringEvery(str string, f func(rune) bool) bool
- func ToBase64(inp []byte) string
- func ToHex(inp []byte) string
- func UnPKCS7(pt []byte) []byte
- func XOR(inp, key []byte) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AESCBCDecrypt ¶
func AESCBCEncrypt ¶
func AESECBDecrypt ¶
func AESECBEncrypt ¶
func ChunkByteArray ¶
Splits bytearray into equally sized chunks
func FromBase64 ¶
func HammingDistance ¶
Compare binary hamming distance between two byte arrays
func ScoreString ¶
Score string based on a chi2 distribution compared to english
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.