收藏
回答

退款回调信息req_info base64_decode乱码,是我解析的代码有什么问题吗?

我是php解析的,

直接使用php的base64_decode就是乱码的

下面是我的代码

$encryptData = "YgohmnwXKQ2NIRP1ZQpnBX7T8zCLD5zxFtS5t1+K23TIcYG4LncFtnoUUEq1FsF3M5EYvvZs2iQSjSGRWmQKEu3LXWkwBfGnrTez7b0zQPn23xFjkAc53m6sjRo77dM8Q/GqBSNXaIjK6cG5JfWiEuVFcuubOD5AlfMQP0MGmMrm1EOtoxZkYxUXR0Mpmfts+4EuHOlGx4tjbTaA/DsP8fK382d9LyU2BmzQ59mmSmeNHw1LkUizkQ2Xs9Yhxbb5KqMBWRxsDYqsQuaYVHNskxcivaMEapzZegYjcOYJqQSwNvy32bSC1BXVOBl9JkBQKxxG7bvBIv7eTunOCEyWfX7rNjOwsow52/JWA+p9E25or3il/BngB22Ny9ZEn/qooOCb3rdAolBPkiGezzxMzNmCmVCV/nhdQxZhWp1kgW9ByOk6pvb2AHsLJgux2nTG3mEQTmMv++9OQ4dmknNxz1FatzLy3Dr2qux614cw8jugSOROpr+YMZ2KyZ8SDb9YlKDA/U/UlUZFqofEE3PDimKf10iFA/fXgy2mxj0hG/HUeNTaD7jhagsbdYv8fXkzbvcu5GPZ/e7HIc4noqNy9lDwPvE8v0VbK+IMgRtoeemxM1HtZMyWREZASTDPL2jYMQYJYG8iuenpWsNqvtkUbszsfNWYsdGayGofnuE/hLt6Rm3DpEHgAQ6d1OEuJ6m7MP4oI+DY8Q0GrbtSzgmH3WiisV4zun7Q1aawOJocHAyEHJgaYvyaEA/4r1H86ImUWPZpADbYyJYmMiwJejvNc3UmMXF8DMFDy6xjwVoYH3Gt0UjJ8867qGZHs1i6dOh4iVm7+60rH+oz1Som10Hywmpy23KjG4QJLyNRC+K/1PPpTMk0SDQfrbQ0WOgoenM9SkEHvxtzJ1HWJGxzOAATUkLgQhHjZM1AZenQID+gktfRMBTrL0JiR0XebC/prETI17KUZdl5ImbMnJSCgJ+9k10yTtvZBQEhTAZ30EzvGDdwXPiiHGVtWTKMUy091fuS86J37fYJWSMH71HnkKw9zA==";

$encryptData =base64_decode($encryptData);
$key = strtolower(md5('1234****02'));
$result = openssl_decrypt($result, 'aes-256-ecb', $key, OPENSSL_RAW_DATA);
最后一次编辑于  2020-07-14
回答关注问题邀请回答
收藏

1 个回答

  • Starshine
    Starshine
    2022-01-12

    我也一样,解决了吗请问?


    2022-01-12
    有用
    回复
登录 后发表内容
问题标签