I received a public key in the following format:
$publicKey = '-----BEGIN PUBLIC KEY
MIGfMA0GCSqGSIb3DQEBAQUAAASDF4QKBgQCMuZSztSi6iBLLxHquRomOXLW4WVtoovj8QqbUR8Bp1EiPsvN9Z9o4gCStacMAGWdvxH+V2vCZ7C66S+h2GTG45VBMfUeIfpc+Ta2593R10J34Vv+uKhPmTYNXASDH4howZMc0SK18ol7be63VtlwXGakNkLXsucGlTnfkWwGoQIDAQAB
-----END PUBLIC KEY-----';
$publicKey = '-----BEGIN PUBLIC KEY-----
MIGfMA0GCSqGSIb3DQEBAQUAAASDF4QKBgQCMuZSztSi6iBLLx
HquRomOXLW4WVtoovj8QqbUR8Bp1EiPsvN9Z9o4gCStacMAGWd
vxH+V2vCZ7C66S+h2GTG45VBMfUeIfpc+Ta2593R10J34Vv+uK
hPmTYNXASDH4howZMc0SK18ol7be63VtlwXGakNkLXsucGlTnf
kWwGoQIDAQAB
-----END PUBLIC KEY-----';
The difference is that the first one is not wrapped, otherwise, both strings are the same.
Both of them can do the encryption, but I am not sure if they are the same ones because of the line breaks.
I don't have the private key.
Does wrapping the key affect the value of the key?