cryptoRandom

package
v0.0.0-...-5a72ec3 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Mask_63 = uint8(len(encodeStr) - 1)
)

len(encodeStr) = 8+5+11+11+2+11+10+6 = 64.

This allows (0 <= x <= 255) x % 64 to have an even distribution.

Variables

This section is empty.

Functions

func AsciiBytes

func AsciiBytes(n int) ([]byte, error)

A helper function create and fill a slice of length n with characters from the following string:

"ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnpqrstuvwxyz0123456789-_+=,."

Types

This section is empty.

Jump to

Keyboard shortcuts

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