Tag: hmac
2 รายการ
Blog
pythonsecurityhmac
Python secrets.compare_digest: เทียบลายเซ็นโดยลด timing leak
ตรวจ webhook MAC ด้วย compare_digest หลัง decode และ validate format พร้อมแยก constant-time comparison ออกจากการคำนวณ HMAC และ replay protection
pythonhmacsecurity
hmac.compare_digest: เทียบลายเซ็นแบบกัน timing attack
ใช้ hmac.compare_digest เทียบ digest แทน == เพื่อลดความเสี่ยง timing side-channel ตามเอกสาร Python stdlib