Nonce

Search Dictionary

Definition of 'Nonce'

A nonce is a number used once, typically to ensure that a message is not replayed. It is a random or pseudo-random number that is used only once in a cryptographic communication. Nonces are used to prevent replay attacks, in which an attacker sends the same message multiple times in an attempt to trick the recipient into taking an action that they would not have taken if they had only received the message once.

Nonces are also used to prevent denial-of-service attacks, in which an attacker sends a large number of messages to a server in an attempt to overload it and prevent it from responding to legitimate requests. By using a nonce, the server can ensure that each message is unique and that it is not responding to a replay of a previous message.

Nonces are typically generated using a cryptographically secure pseudo-random number generator (CSPRNG). This ensures that the nonces are unpredictable and cannot be predicted by an attacker.

Nonces are used in a variety of cryptographic protocols, including the Transport Layer Security (TLS) protocol, the Secure Sockets Layer (SSL) protocol, and the Internet Protocol Security (IPsec) protocol.

In TLS, nonces are used to prevent replay attacks. When a client establishes a connection to a server, the server generates a nonce and sends it to the client. The client then uses the nonce to generate a session key, which is used to encrypt all subsequent communication between the client and the server. If an attacker tries to replay a previous message, the server will reject it because the nonce will not match the one that was generated for the original message.

In SSL, nonces are used to prevent denial-of-service attacks. When a client establishes a connection to a server, the server generates a nonce and sends it to the client. The client then uses the nonce to generate a session ID, which is used to identify the connection between the client and the server. If an attacker tries to establish multiple connections to the server using the same session ID, the server will reject the second connection because the nonce will not match the one that was generated for the first connection.

In IPsec, nonces are used to prevent replay attacks. When a security association is established between two hosts, each host generates a nonce and sends it to the other host. The hosts then use the nonces to generate a shared secret, which is used to encrypt all subsequent communication between the hosts. If an attacker tries to replay a previous message, the hosts will reject it because the nonces will not match the ones that were generated for the original message.

Nonces are an important security feature that help to protect against replay attacks and denial-of-service attacks. They are used in a variety of cryptographic protocols, including TLS, SSL, and IPsec.

Do you have a trading or investing definition for our dictionary? Click the Create Definition link to add your own definition. You will earn 150 bonus reputation points for each definition that is accepted.

Is this definition wrong? Let us know by posting to the forum and we will correct it.