randid

package
v0.0.0-...-aa67389 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 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