Some code cleanup, add an unpad function, fix the pad function, always call the pad function when encrypting.
Add another test to make sure padding works.
My notes about decryption
Current revision