Documentation ¶
Overview ¶
Package keygen provides functionality for generating API client IDs and secrets
Index ¶
Constants ¶
View Source
const ( KeyIDLength = 32 SecretLength = 64 ByteLength = 8 )
Defaults for the length of key IDs and secrets in Datum
Variables ¶
This section is empty.
Functions ¶
func Alpha ¶
Alpha generates a random string of n characters that only includes upper and lowercase letters (no symbols or digits)
func AlphaNumeric ¶
AlphaNumeric generates a random string of n characters that includes upper and lowercase letters and the digits 0-9
func CryptoRandInt ¶
func CryptoRandInt() uint64
CryptoRandInt function generates a random 64-bit unsigned integer using cryptographic methods
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.