shorthash

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2021 License: BSD-3-Clause Imports: 0 Imported by: 1

Documentation

Index

Constants

View Source
const (
	Chars      = "abcdefghijklmnopqrstuvwxyzZYXWVUTSRQPONMLKJIHGFEDCBA1234567890"
	Vowels     = "aeiou"
	Consonants = "bdfghklmnprstvwxyz"
)

Variables

This section is empty.

Functions

func Make

func Make(hash []byte, hashLen int) string

Make squashes a long hash into a shorter one represented as hashLen base62 characters.

func Memorable

func Memorable(hash []byte, hashLen int) string

Memorable produces a shortened output with alternating consonants and vowels.

Types

This section is empty.

Jump to

Keyboard shortcuts

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