Categorygithub.com/flxone/golang-encrypted-uuid
modulepackage
0.0.0-20190328123256-c181b1fdc40e
Repository: https://github.com/flxone/golang-encrypted-uuid.git
Documentation: pkg.go.dev

# README

golang-encrypted-uuid Build status

Encrypt a UUID (common use case as tracking cookie)

Example: creating

generator := enc_uuid.New([]byte("mysecret90123456"), true)
u := generator.New()
log.Println(u.ToString()) // Encrypted string

Example: reading

generator := enc_uuid.New([]byte("mysecret90123456"), true)
parsed, _ := generator.Parse("T5LvxuSpeC0g2VglOnOACOzuFP0wmH04l49fQmSWR5+kpIXvGXzO0g==")
parsedStr, _ := parsed.UuidStr(generator)
log.Println(parsedStr) // Decrypted hex string representation of the uuid v4

# Functions

No description provided by the author

# Structs

No description provided by the author
No description provided by the author