A nonce is a unique, random value intended for one use within a cryptographic or authentication context. It makes a request or encryption operation distinguishable and helps prevent replay. section 13.3.3 section 5.2.1
OIDC authentication
A client sends a nonce with an OIDC authentication request. When the ID token returns, it must contain the same nonce; a mismatch causes rejection and blocks reused authentication data. section 13.3.3
Keep these nearby distinctions in mind:
- Nonce limits replay by making authentication data valid only once; state instead links an authentication request to the client session and helps prevent CSRF. section 13.3.3
- In AES-CBC, the IV acts as a nonce: use a different IV for every encryption operation with the same key. section 5.2.1
Figure 13.8 Using a nonce with a properly signed transaction prevents hackers from replaying or modifying the request, ensuring the transaction is secure and unique.
Visualizes how a nonce supports a unique, properly protected transaction and blocks replay or modification. section 13.3.3



