secrets

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TokenBytes

func TokenBytes(nbytes uint8) ([]byte, error)

TokenBytes returns a secure random token of the specified number of bytes

func TokenHex

func TokenHex(nbytes uint8) (string, error)

TokenHex returns a secure random token of the specified number of bytes, encoded as hex

Types

This section is empty.

Jump to

Keyboard shortcuts

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