Python logo

Table of Contents

  • secrets — Generate secure random numbers for managing secrets
    • Random numbers
    • Generating tokens
      • How many bytes should tokens use?
    • Other functions
    • Recipes and best practices

Previous topic

hmac — Keyed-Hashing for Message Authentication

Next topic

Generic Operating System Services