Skip to content

bibenga/humanhash-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Human hash

Original code was given from the repository - https://github.com/django-q2/django-q2/blob/master/django_q/humanhash.py

Usage

package main

import (
	"fmt"

	humanhash "github.com/bibenga/humanhash-go"
)

func main() {
	compressed, err := humanhash.Humanize([]byte{96, 173, 141, 13, 135, 27, 96, 149, 128, 130, 151, 32})
	if err != nil {
		panic(err)
	}
	fmt.Printf("Humanize: compressed=%v\n", compressed)

	uuid, compressed, err := humanhash.NewUuid()
	if err != nil {
		panic(err)
	}
	fmt.Printf("NewUuid: uuid=%v; compressed=%s\n", uuid, compressed)
}

About

The library for generate human readable hash

Topics

Resources

License

Stars

Watchers

Forks

Languages