key

package
v0.0.0-...-da6f084 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StrSource = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
	HexSource = "0123456789ABCDEF"
	NumSource = "0123456789"
)

Variables

This section is empty.

Functions

func RandomHex

func RandomHex(length int) string

生成十六进制随机串

func RandomNum

func RandomNum(length int) string

生成纯数字的随机串

func RandomStr

func RandomStr(length int) string

用内置字符串生成随机字符串或秘钥

Types

This section is empty.

Jump to

Keyboard shortcuts

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