vault: Index | Files

package base62

import ""

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


Package Files


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 24 packages. Updated 2019-11-08. Refresh now. Tools for package owners.