Documentation ¶
Overview ¶
Package challenge - is used in tests to generate fake challenges.
The challenge is a 32 byte long string sent by a caller to a receiver. The caller expects to receive the string back.
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRandomChallenge ¶
func NewRandomChallenge() string
NewRandomChallenge generates and returns 32 byte long, base64 encoded random string
Example ¶
v1 := NewRandomChallenge() v2 := NewRandomChallenge() v3 := NewRandomChallenge() fmt.Println(v1 == v2 && v1 == v3)
Output: false
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.