uuidapikey

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package uuidapikey contains generator, validator, and converter that transforms UUIDs into human-readable Base32-Crockford encoded API Keys

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAPIKey

func CheckAPIKey(uuid, apiKey string) bool

Check will verify both UUID and API Key, with either given

func CreateUUIDAPIKey

func CreateUUIDAPIKey() string

Create will create new UUID and API Key

func IsAPIKey

func IsAPIKey(apiKey string) bool

IsAPIKey will verify given API Key

func IsUUID

func IsUUID(uuid string) bool

IsUUID will verify given UUID

func ToAPIKey

func ToAPIKey(uuid string) string

ToAPIKey will convert given UUID to API Key

func ToUUID

func ToUUID(apiKey string) string

ToUUID will convert given API Key to UUID

Types

This section is empty.

Jump to

Keyboard shortcuts

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