Python logo

上個主題

plistlib --- Generate and parse Apple .plist files

下個主題

hashlib --- Secure hashes and message digests

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.11.8 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 加密服務
  • |
  • |

加密服務¶

本章所描述的模組 (module) 實作了多種加密演算法。它們可以在安裝時選擇是否一同安裝。在 Unix 系統上,crypt 模組也有機會能夠被使用。以下為概述:

  • hashlib --- Secure hashes and message digests
    • 雜湊演算法
    • 用法
    • 建構函式
    • Attributes
    • Hash Objects
    • SHAKE variable length digests
    • File hashing
    • Key derivation
    • BLAKE2
      • Creating hash objects
      • 常數
      • 範例
        • Simple hashing
        • Using different digest sizes
        • Keyed hashing
        • Randomized hashing
        • Personalization
        • Tree mode
      • Credits
  • hmac --- 基於金鑰雜湊的訊息驗證
  • secrets --- 產生用於管理機密的安全亂數
    • 亂數
    • 產生權杖(token)
      • 權杖應當使用多少個位元組?
    • 其他函式
    • 應用技巧和典範實務(best practices)

上個主題

plistlib --- Generate and parse Apple .plist files

下個主題

hashlib --- Secure hashes and message digests

此頁面

  • 回報錯誤
  • 顯示原始碼
«

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.11.8 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 加密服務
  • |
  • |
© 版權 2001-2024, Python Software Foundation.
This page is licensed under the Python Software Foundation License Version 2.
Examples, recipes, and other code in the documentation are additionally licensed under the Zero Clause BSD License.
See History and License for more information.

The Python Software Foundation is a non-profit corporation. Please donate.

最後更新於 Apr 02, 2024 (03:07 UTC)。 Found a bug?
使用 Sphinx 7.2.6 建立。