Learn

Challenge-Response Auth

Challenge-response authentication is a protocol where the server issues a challenge (a random nonce) and the client proves its identity by producing a valid response (a cryptographic signature). The secret key never leaves the client.

Frequently Asked Questions

How does challenge-response prevent replay attacks?

Each challenge nonce is unique and expires after use. A captured signature can't be reused because the nonce won't be valid for a second attempt.

How do AI agents use challenge-response?

The agent requests a nonce from GitHat, signs it with its Ethereum wallet private key, and submits the signature. GitHat verifies the signature and issues a 2-minute token.

What makes challenge-response better than API keys?

API keys are static secrets — if leaked, they work until revoked. Challenge-response signatures are dynamic and time-bound. The private key is never transmitted.

Try GitHat free

Ship authenticated apps in minutes, not weeks.