utils

package
v8.22.1 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlphaNumeric

func AlphaNumeric(size string) string

func AlphaNumericExtended

func AlphaNumericExtended(size string) string

func AlphaNumericExtendedLong

func AlphaNumericExtendedLong(size string) string

func AlphaNumericExtendedShort

func AlphaNumericExtendedShort(size string) string

func GenerateSampleSecret

func GenerateSampleSecret(identifier string, secret string) string

func GenerateSampleSecrets added in v8.21.3

func GenerateSampleSecrets(identifier string, secret string) []string

See: https://github.com/gitleaks/gitleaks/issues/1222

func GenerateSemiGenericRegex

func GenerateSemiGenericRegex(identifiers []string, secretRegex string, isCaseInsensitive bool) *regexp.Regexp

func GenerateUniqueTokenRegex

func GenerateUniqueTokenRegex(secretRegex string, isCaseInsensitive bool) *regexp.Regexp

func Hex

func Hex(size string) string

func Hex8_4_4_4_12

func Hex8_4_4_4_12() string

func MergeRegexps added in v8.21.3

func MergeRegexps(regexps ...*regexp.Regexp) *regexp.Regexp

func Numeric

func Numeric(size string) string

func Validate

func Validate(rule config.Rule, truePositives []string, falsePositives []string) *config.Rule

func ValidateWithPaths

func ValidateWithPaths(rule config.Rule, truePositives map[string]string, falsePositives map[string]string) *config.Rule

Types

This section is empty.

Jump to

Keyboard shortcuts

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