News for hackers. Stuff that matters.
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.
Re:DecryptoCat by kragen on Thursday July 04, 2013 @11:18AM (#5990997)
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.
Re:DecryptoCat by tptacek on Thursday July 04, 2013 @11:28AM (#5991046)
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.
Re:DecryptoCat by kragen on Thursday July 04, 2013 @12:19PM (#5991308)
Even if you're using the non-secretbox APIs like crypto_box.
Re:DecryptoCat by tel on Thursday July 04, 2013 @12:22PM (#5991319)
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.