C3 Hash and HMAC

Needs: Supporter

Lesson C3: SHA-1 and SHA-2, HMAC, and the difference between a hash, a MAC and a signature.

This is a supporter feature. Create a free account, then try every supporter feature free for 7 days.

Sign in Create a free account See plans

The opening of the lesson

Why it matters

Hashes show up all over payment systems:

  • certificate signatures;
  • EMV offline data authentication;
  • TR-34 key loading;
  • PIN-less authentication schemes;
  • API signatures;
  • file integrity checks.

HMACs protect API calls and some host links. Knowing what each one proves, and what it does not, avoids designs that look secure and are not.

In the full lesson

  1. The concept
  2. Step by step
  3. In the real world
  4. Common mistakes
  5. What to test

What module C3 covers →

The rest of the lesson opens with a supporter pass, which you can try free for 7 days.
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.