A nonce is a random or unique number that is used only once in cryptographic operations to ensure security. It is often used to prevent replay attacks.