The Cryptographic Doom Principle
thoughtcrime.org
thoughtcrime.org
The URL from this submission ends with /?, so HN wasn't able to dedupe it from the earlier submission: https://news.ycombinator.com/item?id=6153834
https://tools.ietf.org/html/rfc4880#section-5.13
It also does digital signatures (but those are different than a MAC, they verify the identity of the sender).
The MAC takes a shared secret as input, so it should only reveal anything to parties that possess that secret.
AEAD, EtM, or bust.
The author's proposed solution of "Encrypt then authenticate" seems pretty reasonable.
You can perform cryptanalysis on random tokens and if the RNG (or PRNG) isn't seeded properly, you get a replay attack. This is not to mention: aside from attacks, you have further crypto to do aside from the generation: how do you verify the token?
If you roll your own RNG/PRNG and token generation, it is probably just as broken as the block cipher you tried to roll yourself as well. Using standard libraries and well-audited tools brings ciphertext authentication into the same realm of usability for developers that token generation is in.
MAC: http://en.wikipedia.org/wiki/Message_authentication_code
[Please spell out your acronyms the first time, nerds]
If I recall, underlining links led to heated debates in some circles, but it's really, really nice to have some visual signal to set off links for readers. If it wasn't obvious why already, this is a great case.
Huh? it's a different color.
It all feels a bit like rating chef Jonathan Benno on shoelace cleanliness though.