crand

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

README

crand-go

PkgGoDev GitHub release (latest by date)

A wrapper around Go's crand/rand for generating crypto secure random strings

Documentation

Index

Constants

View Source
const (
	Charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"
)

Variables

This section is empty.

Functions

func String

func String(size int) (string, error)

String generates a crypto secure random string of length size using the default charset.

func StringWithCharset

func StringWithCharset(size int, charset string) (string, error)

StringWithCharset generates a crypto secure random string of length size using the specified charset.

Types

This section is empty.

Jump to

Keyboard shortcuts

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