randid

package
v0.0.0-...-63ef27d Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CryptoStr

func CryptoStr() string

CryptoStr returns a cryptographically secure randomly generated 128-bit string, in the base64 URL-safe encoding.

func FriendlyStr

func FriendlyStr(n int) string

FriendlyStr returns a (NOT cryptographically secure) randomly generated N-char string which is human friendly, URL-safe, ASCII-only, and lowercase. Approximately log2(24^n) bits of entropy = ~24^n combinations.

func FriendlyStr17

func FriendlyStr17() string

FriendlyStr17 returns a (NOT cryptographically secure) randomly generated string which is human friendly and URL-safe. It is generated by combining an animal and a colour. Approximately 17 bits of entropy = ~151k possible combinations.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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