There are a total of 1 posts.
Published 十二月 09, 2025 by whitedec
Django/DRF 中使用 HMAC 簽名確保伺服器間請求完整性
在 Django 與 DRF 環境中,利用 HMAC 簽名確保伺服器間請求的完整性與認證。本文說明秘密金鑰共享、時間戳與 nonce 的重放防護、客戶端與伺服器的差異,以及實際程式碼與 CBV 模式,為伺服器間通訊安全提供完整指引。