【问题标题】:gzip, deflate decompress php [closed]gzip,deflate 解压 php [关闭]
【发布时间】:2022-01-19 16:15:41
【问题描述】:

我有一个编码字符串,我该如何解码它

eNpTNXdSNTJKLSrKLwLSqsaOJUWlqapGzkBOSmpxMlQQSKYlZuakpqgaGSSWlmTkF2VWJZZk5ueBpM1dALkhFLk=

gzdecode、gzinflate、zlib_decode 输出假

on this site it stands for as it should be

【问题讨论】:

标签: php gzip deflate


【解决方案1】:

这里有很多层要解码:

$result = json_decode(urldecode(zlib_decode(base64_decode($str))), true);

这会产生:

Array
(
    [error] => 1
    [descr] => failed authorization
)

【讨论】:

    猜你喜欢
    • 2020-06-16
    • 2013-05-05
    • 2010-12-24
    • 1970-01-01
    • 1970-01-01
    • 2023-03-30
    • 2011-03-02
    • 2011-06-11
    • 1970-01-01
    相关资源
    最近更新 更多