secretutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package secretutil generates cryptographically-random secrets/identifiers.

Index

Constants

View Source
const DefaultSecretBytes = 32

DefaultSecretBytes is the entropy (in bytes) of a generated secret before encoding.

Variables

This section is empty.

Functions

func GenRandom

func GenRandom(nBytes int) (string, error)

GenRandom returns nBytes of CSPRNG randomness as an unpadded base64url string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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