package base62
import "github.com/hashicorp/cap/oidc/internal/base62"
Package base62 provides utilities for working with base62 strings. base62 strings will only contain characters: 0-9, a-z, A-Z
Index ¶
- func Random(length int) (string, error)
- func RandomWithReader(length int, reader io.Reader) (string, error)
Functions ¶
func Random ¶
Random generates a random string using base-62 characters. Resulting entropy is ~5.95 bits/character.
func RandomWithReader ¶
RandomWithReader generates a random string using base-62 characters and a given reader. Resulting entropy is ~5.95 bits/character.
Source Files ¶
- Version
- v0.9.0 (latest)
- Published
- Feb 28, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 months ago –
Tools for package owners.