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.
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.
Click to show internal directories.
Click to hide internal directories.