identity

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compute

func Compute(challID, sourceID string) string

Compute an indentity with is a unique name depending on the challenge and source ids contained within a request to avoid colliding with another instance, and a random uuid serving as salt.

It has a limited length of 16 thus could be used as a DNS label, while remaining most probably unguessable and large enough to scale (16 chars ^ 16 runes of hex alphabet = 18 446 744 073 709 551 616 combinations).

This identity is not predictable as it will internally combine a (crypto) random instance id that will get appended in the hash input function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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