🔑JWT & Auth

API Key Patterns

Common formats for secure, generated API keys.

Explanation

Good API keys are long, random, and often include a prefix to identify the service.

Examples

Stripe Style
Output
sk_live_51M...
Standard Hex
Output
4f92bc88...

Code Examples

Examples
vaima_live_f82bc9a1e0...
sk_test_51Px9jK...
ghp_L1O8p2vA...

💡 Tips

  • Prefix keys (e.g., sk_live_) to help with secret scanning tools
  • Use at least 32 characters of entropy
  • Checksum the key if you need to validate format without a DB lookup

⚠️ Common Pitfalls

  • Never commit API keys to version control like GitHub