Using Random String Generator: practical guide
Create random strings for tests and tokens
Choose the length and the characters allowed, such as letters, digits and symbols. Random strings are handy for test data, temporary codes and placeholder identifiers.
Not every string is a secret
Longer strings from a wider character set are harder to guess. For account passwords use the Password Generator and a password manager, and for long-lived secrets generate them on your server with a cryptographic library so they never pass through a web page.