models

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: GPL-3.0 Imports: 8 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetSupportedHashFunctions

func GetSupportedHashFunctions() map[string]hash.Hash

Types

type ClientStopReason

type ClientStopReason struct {
	Requester string
	Encoder   string
	Submitter string
}

func NewClientStopReason

func NewClientStopReason(r string, e string, s string) ClientStopReason

type Config

type Config struct {
	ApiPort                  uint16
	ComputedHashOverflowPath string
	FlushToFile              bool
	HashFunction             string
	HashlistPath             string
	HashQueueBuffer          uint64
	LogPath                  string
	LogFrequencyInSeconds    uint64
	PasswordQueueBuffer      uint64
	PasswordRequestSize      uint64
	RequestBackupPath        string
	ServerAddress            string
	SubmissionBackupPath     string
	Threads                  uint16
	Verbose                  bool
	WordlistPath             string
}

type HashSubmission

type HashSubmission struct {
	HashType string   `json:"hashType"`
	Results  []string `json:"results"`
}

type HashingRequest

type HashingRequest struct {
	Hash      hash.Hash `json:"hash"`
	HashName  string    `json:"hashName"`
	Passwords []string  `json:"passwords"`
}

Jump to

Keyboard shortcuts

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