Added padding support (for AES and DES)