# Layanan Kriptografi

Modul-modul yang dideskripsikan di bagian ini mengimplementasikan berbagai algoritma dunia kriptografi. Mereka (modul-modul) tersedia bebas saat pemasangan. Pada sistem Unix, modul `crypt` mungkin saja tersedia. Berikut ini ikhtisar:

- `hashlib` --- Secure hashes and message digests
  - Hash algorithms
  - SHAKE variable length digests
  - Key derivation
  - BLAKE2
    - Creating hash objects
    - Konstanta
    - Contoh-contoh
      - Simple hashing
      - Using different digest sizes
      - Keyed hashing
      - Randomized hashing
      - Personalization
      - Tree mode
    - Credits
- `hmac` --- Keyed-Hashing for Message Authentication
- `secrets` --- Generate secure random numbers for managing secrets
  - Random numbers
  - Generating tokens
    - How many bytes should tokens use?
  - Other functions
  - Recipes and best practices