challenge

package
v0.0.0-...-12ab560 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

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.

Jump to

Keyboard shortcuts

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