News for hackers. Stuff that matters.
Re:Why I've Retired My PGP Keys and What's Replaced It by problems on Tuesday March 14, 2017 @08:45AM (#13867031)
> I couldn’t find anything that fit the bill, so I did exactly what you’re not supposed to do and rolled my own: Enchive.

Someone correct me if I'm wrong, but I think the main thing you're "not supposed to do" is create or implement your own primitives.

If you have a decent understanding of the software engineering and cryptographic implications around them - especially if you're using a high level library like libsodium, implementing high quality algorithms into your own applications is fairly well supported.

Of course, before anyone puts much faith in it they probably want some reputation at stake at the very least, but the primitives you've gone with are some of the hardest to screw up with the least weird side effects around.

Re:Why I've Retired My PGP Keys and What's Replaced It by simias on Tuesday March 14, 2017 @09:59AM (#13867498)
If you look at the code on github he doesn't appear to have implemented the algos from scratch, rather he reused public domain code. It's still very much possible to make a mistake while wiring it all together though, especially in C.

EDIT: actually the curve25519-donna code is from Google and appears to be BSD-like. The chacha and sha256 implementations are public domain however.

Re:Why I've Retired My PGP Keys and What's Replaced It by problems on Tuesday March 14, 2017 @10:11AM (#13867601)
Yeah, what's exactly what I was saying. He's using existing high quality algorithm implementations and integrating them into his new tool. The only custom part is how exactly he uses them in his code.

While it's totally possible to screw that up, it's also not really the majorly discouraged part.

Re:Why I've Retired My PGP Keys and What's Replaced It by Anderkent on Tuesday March 14, 2017 @10:41AM (#13867821)
It's not just primitives that you're not supposed to reimplement. Wiring primitives together to build a secure full-featured system is very error prone. That's exactly why libsodium is recommended so often - it does most of the wiring for you.