News for hackers. Stuff that matters.
Re:Ruining the Magic of Magento's Encryption Library by nchelluri on Tuesday July 26, 2016 @07:28PM (#12169489)
thanks for this. If I may sum up and you could verify this:

When I encrypt something and give it to you, I should take a signature (hash of the encrypted msg) and append it to the encrypted message. Then if you twiddle bits before asking me to decrypt it, I'll see that your provided signature is incorrect.

I know there's more in it, and I've briefly read through the article you provided, which I may look at it in more detail later, but I think that's the gist of it.

Re:Ruining the Magic of Magento's Encryption Library by chug on Tuesday July 26, 2016 @10:39PM (#12170158)
Exactly! In fact, that's embarrassingly concise given my rambling. The only major thing missed is that the hash input has to contain something that the attack doesn't know in addition to the message. Or in other words, the private key is usually also involved in the hashing. If you ever want to get into details, the MAC [1] and HMAC [2] wiki pages go into depth.

[1] https://en.wikipedia.org/wiki/Message_authentication_code [2] https://en.wikipedia.org/wiki/Hash-based_message_authenticat...

Re:Ruining the Magic of Magento's Encryption Library by nchelluri on Wednesday July 27, 2016 @09:55AM (#12172748)
thanks for the followup :) and especially for the clarification about private keys (and MAC, HMAC) for the signature.