unxor

package
v0.0.0-...-4caf211 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpToFile

func DumpToFile(b []byte, fname string) int

DumpToFile dumps bytes to a file on disk

func FindKey

func FindKey(crypt []byte, search []byte) ([]byte, error)

FindKey tries to find a key in a cyphertext based on known plaintext

func ReadFile

func ReadFile(fn string) []byte

ReadFile Reads a file's bytes from disk

func Xor

func Xor(cleartext []byte, k []byte) []byte

Xor performs a rolling-xor on cleartext with a key

func XorMin

func XorMin(cleartext []byte, k []byte) []byte

XorMin performs a byte-to-byte xor with minimum length of both byte slices

Types

This section is empty.

Source Files

  • unxor.go

Jump to

Keyboard shortcuts

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