Added PKCS #7 padding instead of PHPs zero-padding