vault: github.com/hashicorp/vault/sdk/helper/base62 Index | Files

package base62

import "github.com/hashicorp/vault/sdk/helper/base62"

Package base62 provides utilities for working with base62 strings. base62 strings will only contain characters: 0-9, a-z, A-Z

Index

Package Files

base62.go

func Random Uses

func Random(length int) (string, error)

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

func RandomWithReader Uses

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.

Package base62 imports 3 packages (graph) and is imported by 6 packages. Updated 2019-10-18. Refresh now. Tools for package owners.