random

package
v0.0.0-...-e1d3906 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package random generates cryptographically random values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64

func Base64(lngth int) (string, error)

Base64 creates a cryptographically randomly generated set of bytes with the length of lngth which is returned as base64 encoded string.

func ByteArray

func ByteArray(lngth int) ([]byte, error)

ByteArray returns a cryptographically random byte array of the given length.

func String

func String(lngth int, set string) (string, error)

String returns a cryptographically random string with the given lngth from the set of characters passed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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