nacl

Update of "hints"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: 9085f9780d6e228ac5fe7922d9d9d8251eb06aeb30f4fc9dcbfd138a9f2e7ce7
Page Name:hints
Date: 2018-07-18 18:57:20
Original User: alex
Content

Hints

How does crypto_box work?

What happens if you use it multiple times?

If you take two fixed key-pairs, the result of the key exchange will always be the same.

But the symmetric part secret_box is secure even when you use a key several times, as long as you never reuse a nonce for that key, i.e. the (key, nonce) pair must be unique.

This property is pretty much the same for all modern authenticated stream ciphers, such as AES-GCM or XSalsa20-Poly1305.

Common ways to create a unique nonce are:

from https://stackoverflow.com/questions/13663604/questions-about-the-nacl-crypto-library