Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBase32EncodedString ¶
GenerateBase32EncodedString generates a one-off value with an anonymous Generator.
func GenerateBase64EncodedString ¶
GenerateBase64EncodedString generates a one-off value with an anonymous Generator.
Types ¶
type Generator ¶
type Generator interface { GenerateBase32EncodedString(context.Context, int) (string, error) GenerateBase64EncodedString(context.Context, int) (string, error) GenerateRawBytes(context.Context, int) ([]byte, error) }
Generator should generate random strings securely.
func NewGenerator ¶
NewGenerator builds a new Generator.
Click to show internal directories.
Click to hide internal directories.