security

package
v5.0.0-...-03972fd Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NUMBER   = "0123456789"
	HEX      = "0123456789abcdef"
	ALPHA    = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	ALNUM    = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
	ALPHABET = "abcdefghijklmnopqrstuvwxyz"

	ChunkSize  = 4
	ChunkCount = 4 // 16 symbols
)

Variables

This section is empty.

Functions

func String

func String(chars string, length uint8) string

Types

type Manager

type Manager interface {
	CreateGuid() uint64
	DecodeGuid(id uint64) string
	EncodeGuid(id string) uint64

	CreateIdentifier(chars string, chunks uint8) string
	DecodeIdentifier(id string, chunks uint8) string
	EncodeIdentifier(id string, chars string, chunks uint8) string

	Filter(id, chars string) string
}

func New

func New() Manager

Jump to

Keyboard shortcuts

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