flags

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package flags generates per-instance dynamic flags. A per_instance challenge mints a unique flag per team instance; the value is a secret from birth and must never be logged, audited, or returned to a participant (docs/v0.2/05-flags.md).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

Generator mints flags of the form <prefix>{<39 crockford base32 chars>}.

func NewGenerator

func NewGenerator(prefix string) *Generator

NewGenerator builds a generator; an empty prefix defaults to "osctf".

func (*Generator) New

func (g *Generator) New() (string, error)

New mints a unique flag with >= 128 bits of entropy. The shape matches the house style so participants cannot tell a dynamic flag from a static one.

Jump to

Keyboard shortcuts

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