hashish

package module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2020 License: MIT Imports: 9 Imported by: 0

README

hashish

Utility functions for hashes and id's. Thie is NOT meant to generate secure hashes.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Hash32

func Hash32(input string) string

Hash32 does an md5 hash of the input, and encodes to base32

func ID32

func ID32(id int) string

ID32 a numberic inteteger to unique base32 string

func Pearson added in v0.2.0

func Pearson(input string) uint8

func StrToBase32

func StrToBase32(str string) string

StrToBase32 converts input string into base32 string

func ToBase32

func ToBase32(input []byte) string

ToBase32 converts input byte into base32 string

func ToBase64

func ToBase64(input []byte) string

ToBase64 converts input byte into base64 string

func UUID32

func UUID32() (string, error)

UUID32 returns a UUID encoded to base32

func UUIDBinary

func UUIDBinary() uint64

UUIDBinary returns a base10 int64 representation of a uuid

func UUIDTo32

func UUIDTo32(input string) (string, error)

UUIDTo32 takes a uuid string, parses, and converts to base32

func UUIDTo64

func UUIDTo64(input string) (string, error)

UUIDTo64 takes a uuid string, parses, and converts to base32

Types

This section is empty.

Jump to

Keyboard shortcuts

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