News for hackers. Stuff that matters.
Re:Typing The Letters A-E-S Into Your Code? You’re Doing It ... by brl on Wednesday June 03, 2009 @05:14PM (#640436)
> hash=<sha256-of-key-with-data>

Oops, you invented your own keyed MAC and now I can append any data I want.

Re:Typing The Letters A-E-S Into Your Code? You’re Doing It ... by jermy on Wednesday June 03, 2009 @08:34PM (#640739)
Sorry, I would really be using a proper RFC 2104 HMAC implementation (eg. python's hmac module).