Richard Bucker


Posted at — Jan 18, 2013

Remember to identify and remove block padding. While it’s too easy to just trim the printable chars that’s just wrong. Doing it right means:check the last byte in the blockif the value is less than the block sizethen check that number of bytes in from the end.cavaetdoes not hold when encrypting variable length binary data.