3 ms·
It's interesting that even libsodium's box/secretbox have nonce as a separate part of its 'easy to use' interface. I also would like to know why it isn't just
by regecks 7y ago
It's interesting that even libsodium's box/secretbox have nonce as a separate part of its 'easy to use' interface.
I also would like to know why it isn't just an opaque part of the ciphertext.
I'm aware that nonces are not always random but sometimes a counter, which creates an easy way to track nonce re-use. Is that the only reason?
- jopsen 7y agoAlso because it's not part of the cipher text I always end up wondering if I can transmit it in plaintext -- thus, I search stackoverflow for some sketchy answer that says it can -- because nobody every documents this in a library..
- jedisct1 7y agoThis is a historic API. libhydrogen's API is different: https://github.com/jedisct1/libhydrogen/wiki/Secret-key-encryption https://github.com/jedisct1/libhydrogen/wiki/Secret-key-encr...