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 ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.