randomXorReaderWriter

package module
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

randomXorReaderWriter

Reads from reader and outputs two randomly xor'ed bytes and vice versa

Install

go get -u github.com/raspi/randomXorReaderWriter

Example

See _example directory

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FromXor

type FromXor struct {
	// contains filtered or unexported fields
}

func NewFromXor

func NewFromXor(r1, r2 io.Reader) *FromXor

NewFromXor reads from two xor sources and combines them to one

func (FromXor) Read

func (x FromXor) Read(p []byte) (readbytes int, err error)

type ToXor

type ToXor struct {
	// contains filtered or unexported fields
}

func NewToXor

func NewToXor(r io.Reader) *ToXor

NewToXor reads from one source file and outputs two randomly xor'ed bytes

func (ToXor) Read

func (x ToXor) Read(xbuf1, xbuf2 []byte) (readbytes int, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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