Re:DecryptoCat
by tptacek on Thursday July 04, 2013 @10:48AM
(#5990856)
You could if you were going to design your own cryptosystem, but not doing that is the point of this subthread.
[ Parent
| on HN ]
Nacl still leaves you with the necessity to manage your keys, whether you're deriving them from passphrases (in which case you should use a KDF, and scrypt should work) or storing them.
Ok, that's true; if you use the secretbox APIs and aren't using randomized keys, you'd want something like scrypt. You're right.
Even if you're using the non-secretbox APIs like crypto_box.
At what point aren't you designing your own cryptosystem? Even if you use NaCl you must store your keys, determine when and when not to encrypt, decide how to generate nonces, pick between symmetric and asymmetric ciphers. I understand strongly that you should work with as large a black box as you can afford, but it becomes increasingly grey as you move toward operational stuff over "obvious" crypto stuff.