rainbow

package
v0.0.0-...-cda5842 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MD5    = "MD5"
	SHA1   = "SHA1"
	SHA256 = "SHA256"
	SHA384 = "SHA384"
	SHA512 = "SHA512"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type HashFunction

type HashFunction struct {
	hash.Hash
}

func (HashFunction) Apply

func (hf HashFunction) Apply(plaintext string) []byte

type HashFunctionProvider

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

func GetHashFunctionProvider

func GetHashFunctionProvider(hashFunctionName string) (HashFunctionProvider, error)

func (HashFunctionProvider) NewHashFunction

func (provider HashFunctionProvider) NewHashFunction() HashFunction

type RandomStringGenerator

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

func NewRandomStringGenerator

func NewRandomStringGenerator(seed int) *RandomStringGenerator

func (*RandomStringGenerator) NewRandomString

func (rsg *RandomStringGenerator) NewRandomString(characterSet string, stringLength int64) string

type TableGenerateJobConfig

type TableGenerateJobConfig struct {
	ChainBatchSize int64
	NumThreads     int
}

type TableGeneratorJobService

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

func NewRainbowTableGeneratorJobService

func NewRainbowTableGeneratorJobService(
	jobConfig TableGenerateJobConfig,
	rainbowChainService dao.RainbowChainService,
	rainbowTableService dao.RainbowTableService,
	chainGenerationSummary *prometheus.SummaryVec,
	chainWriteSummary *prometheus.SummaryVec,
	chainsCreatedCounter *prometheus.CounterVec,
) *TableGeneratorJobService

func (*TableGeneratorJobService) RunGenerateJobForTable

func (service *TableGeneratorJobService) RunGenerateJobForTable(rainbowTableId int16) error

type TableSearchJobConfig

type TableSearchJobConfig struct {
	SearchHashBatchSize int
	NumThreads          int
}

type TableSearchJobService

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

func NewRainbowTableSearchJobService

func NewRainbowTableSearchJobService(
	jobConfig TableSearchJobConfig,
	rainbowChainService dao.RainbowChainService,
	rainbowTableService dao.RainbowTableService,
	rainbowTableSearchService dao.RainbowTableSearchService,
) *TableSearchJobService

func (*TableSearchJobService) RunSearchJob

func (service *TableSearchJobService) RunSearchJob(searchId int64) error

Jump to

Keyboard shortcuts

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