title: Can I send unencrypted nonce in AES-GCM?
body: <p>I'm implementing AES-GCM in a simple chat.  Since there is no problem in the nonce being public and I need to change it in every message, can I send the message nonce unencrypted with the message itself?</p>
  
  <p>An example:</p>
  
  <p>There is a function like this:</p>
  
  <pre><code>AESGCM(nonce, key, data_to_encrypt, unencrypted_data)
  </code></pre>
  
  <p>And I use this way:</p>
  
  <pre><code>message = AESGCM(nonce, key, data, nonce)
  </code></pre>
  
  <p>Then, the encrypted message will look like this:</p>
  
  <pre><code>unencrypted_nonce | encrypted_data | authentication_tag
  </code></pre>