Wrote code for PKCS5 padding. Not at all elegant code, but should be efficient. Also needs to be tested.