crypto

package
v0.0.0-...-525a05c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomIntBetween

func RandomIntBetween(min, max int) int

func RandomUint16Between

func RandomUint16Between(min, max uint16) uint16

func RandomUint32Between

func RandomUint32Between(min, max uint32) uint32

func RandomXorKey

func RandomXorKey(xorLimit uint16) uint16

RandomXorKey generate a random number between 0 and the defined xorLimit

func XorCipher

func XorCipher(data []byte, xorKey []byte, xorPos *uint16, xorLimit uint16)

XorCipher decrypt bytes using captured xorKey and xorTable

Types

type Source

type Source struct{}

func (Source) Int63

func (s Source) Int63() int64

func (Source) Seed

func (s Source) Seed(seed int64)

func (Source) Uint64

func (s Source) Uint64() (v uint64)

Jump to

Keyboard shortcuts

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