Python logo

Topik sebelumnya

plistlib --- Generate and parse Apple .plist files

Topik berikutnya

hashlib --- Secure hashes and message digests

This page

  • Report a bug
  • Show source

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • Pustaka Standar Python »
  • Layanan Kriptografi
  • |
  • |

Layanan Kriptografi¶

The modules described in this chapter implement various algorithms of a cryptographic nature. They are available at the discretion of the installation. Here's an overview:

  • hashlib --- Secure hashes and message digests
    • Hash algorithms
    • Penggunaan
    • Constructors
    • Attributes
    • Hash Objects
    • SHAKE variable length digests
    • File hashing
    • 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

Topik sebelumnya

plistlib --- Generate and parse Apple .plist files

Topik berikutnya

hashlib --- Secure hashes and message digests

This page

  • Report a bug
  • Show source
«

Navigasi

  • index
  • modul |
  • berikut |
  • sebelum |
  • Python logo
  • Python »
  • 3.13.7 Documentation »
  • Pustaka Standar Python »
  • Layanan Kriptografi
  • |
  • |
© Hak cipta 2001-2025, Python Software Foundation.
Halaman ini dilisensikan di bawah Lisensi Python Software Foundation Versi 2.
Contoh, resep, dan kode lainnya dalam dokumentasi juga dilisensikan di bawah Lisensi Zero Clause BSD.
Lihat Sejarah dan Lisensi untuk informasi lebih lanjut.

Python Software Foundation adalah sebuah korporasi nirlaba. Mari berdonasi.

Terakhir diperbarui pada Sep 28, 2025 (06:08 UTC). Menemukan kekutu?
Dibuat menggunakan Sphinx 8.2.3.