Encryption en decryption using openssl_pkcs7_() functions goes well.
Only when openssl_pkcs7_encrypt() encrypts with the flag PKCS7_BINARY, the decrypted result after openssl_pkcs7_decrypt() is different and I don't know how to decode it into readable text, and parse the originial encrypted message.
base64_decode() only makes some things readable, I can see my original message somewhere among mostly unreadable data.
Only when openssl_pkcs7_encrypt() encrypts with the flag PKCS7_BINARY, the decrypted result after openssl_pkcs7_decrypt() is different and I don't know how to decode it into readable text, and parse the originial encrypted message.
base64_decode() only makes some things readable, I can see my original message somewhere among mostly unreadable data.