[go: up one dir, main page]

Python logo

上個主題

plistlib --- 產生和剖析 Apple .plist 檔案

下個主題

hashlib --- 安全雜湊與訊息摘要

此頁面

  • 回報錯誤
  • 顯示原始碼

瀏覽

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

加密服務¶

本章所描述的模組實作了多種加密演算法。它們可以在安裝時選擇是否一同安裝。以下為概述:

  • hashlib --- 安全雜湊與訊息摘要
    • 雜湊演算法
    • 用法
    • 建構函式
    • 屬性
    • 雜湊物件
    • SHAKE 可變長度摘要
    • 檔案雜湊
    • 密鑰的生成
    • BLAKE2
      • 建立雜湊物件
      • 常數
      • 範例
        • 簡單雜湊
        • 使用不同的摘要大小
        • 密鑰雜湊 (Keyed hashing)
        • 隨機雜湊 (Randomized hashing)
        • 個人化
        • 樹狀模式
      • 製作人員
  • hmac --- 基於金鑰雜湊的訊息驗證
  • secrets --- 產生用於管理機密的安全亂數
    • 亂數
    • 產生權杖(token)
      • 權杖應當使用多少個位元組?
    • 其他函式
    • 應用技巧和典範實務(best practices)

上個主題

plistlib --- 產生和剖析 Apple .plist 檔案

下個主題

hashlib --- 安全雜湊與訊息摘要

此頁面

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

瀏覽

  • 索引
  • 模組 |
  • 下一頁 |
  • 上一頁 |
  • Python logo
  • Python »
  • 3.13.3 Documentation »
  • Python 標準函式庫 (Standard Library) »
  • 加密服務
  • |
  • |
© 版權 2001-2025, 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.

最後更新於 5月 20, 2025 (03:13 UTC)。 Found a bug?
使用 Sphinx 8.2.3 建立。