token

package
v0.72.0 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base32

func Base32(n int) (string, error)

Base32 returns n random bytes encoded as Base32.

func Base58

func Base58(n int) (string, error)

Base58 returns n random bytes encoded in Bitcoin Base58.

func Base64

func Base64(n int) (string, error)

Base64 returns n random bytes encoded as Base64.

func Bytes

func Bytes(n int) ([]byte, error)

Bytes returns n cryptographically secure random bytes.

func Hex

func Hex(n int) (string, error)

Hex returns n random bytes as lowercase hex.

func String

func String(n int, charset string) (string, error)

String returns n securely-generated characters using a custom charset. Charset length must be >= 2.

Types

This section is empty.

Directories

Path Synopsis
cmd
gentoken command

Jump to

Keyboard shortcuts

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