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

Functions

func Random

func Random(length int) (string, error)

Random generates a random string using base-62 characters. Resulting entropy is ~5.95 bits/character.

func RandomWithReader

func RandomWithReader(length int, reader io.Reader) (string, error)

RandomWithReader generates a random string using base-62 characters and a given reader. Resulting entropy is ~5.95 bits/character.

Source Files

base62.go

Version
v0.9.0 (latest)
Published
Feb 28, 2025
Platform
linux/amd64
Imports
3 packages
Last checked
2 months ago

Tools for package owners.