A secret key, a database password or a webhook token should come from a random generator, not from my imagination. OpenSSL has one in every install.
openssl rand -base64 32
openssl rand -hex 32
The number is the amount of random bytes. -base64 encodes the output as base64 text, and -hex shows it as a hex string. So -hex 32 prints 64 hex characters. The manual says the bytes come from a cryptographically secure generator, and gives them a security level of 256 bits when the system entropy source worked.
It is a good way to fill an .env file:
echo "SECRET_KEY=$(openssl rand -hex 32)" >> .env
In current OpenSSL versions the length can have a suffix like K or M for larger amounts, in binary multiples, and the suffix is case sensitive.
The caveat is that the output is only as private as the place where you print it. A secret typed in a shell leaves traces in your shell history if you paste it into a command, and base64 output can contain +, / and =, which some systems do not accept in a password or a URL. Use -hex there, or the URL-safe alphabet of a different tool. Keep the secret out of git.
Further reading: OpenSSL: openssl-rand