Skip to content

Instantly share code, notes, and snippets.

@leapar
Created September 27, 2016 10:03
Show Gist options
  • Save leapar/597c0c61122864e654ae3591a6d5c357 to your computer and use it in GitHub Desktop.
Save leapar/597c0c61122864e654ae3591a6d5c357 to your computer and use it in GitHub Desktop.
zlib php

#zlib in php

##input content-encoding: deflate

内容加密

78 9c c5 59 51 6f db 38 12 fe 2b 82 5e 9a 2c 62
..........
dd 08 14 f8 ba 6b a0 e2 f5 0b 77 ff 07 1d 08 4e
89

##output

$data = file_get_contents('php://input');
Log::info("intake===".zlib_decode ($data));

##important zlib_decode (substr($data,2,-4) ) 等等都没用!!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment