SHA-256 Length Extension: Why a Secret-Prefix Hash Is Not a MAC

A valid SHA-256(secret || message) digest can be extended without recovering the secret. Learn how the padding attack works and why HMAC-SHA-256 avoids it.

The post SHA-256 Length Extension: Why a Secret-Prefix Hash Is Not a MAC appeared first on iTechGuides.


This is a companion discussion topic for the original entry at https://www.itechguides.com/sha-256-length-extension-why-a-secret-prefix-hash-is-not-a-mac/