secrets

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package reggen generates text based on regex definitions This is a slightly altered version of https://github.com/lucasjones/reggen

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSecret

func NewSecret(regex string) string

func NewSecretWithEntropy added in v1.1.1

func NewSecretWithEntropy(regex string, minEntropy float64) string

NewSecretWithEntropy generates secrets from regex until one meets the minimum Shannon entropy threshold. This prevents flaky tests caused by low-entropy generated secrets being rejected by the entropy filter at scan time.

Types

This section is empty.

Jump to

Keyboard shortcuts

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