randcode

package module
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CustomSecure

func CustomSecure(codeLength int, combination Combination) (string, error)

CustomSecure generates random code with crypto/rand and custom combination

func Secure

func Secure(codeLength int) (string, error)

Secure generates random code with crypto/rand

Types

type Combination

type Combination string
const CombinationDefault Combination = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890_-"

Jump to

Keyboard shortcuts

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