Created
June 30, 2015 01:34
-
-
Save vvtommy/f4d9f690a7dafa89caea to your computer and use it in GitHub Desktop.
Nginx User ID Decoder for PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nginxUserIdDecoder($userIdInCookie){ | |
return join(array_map(function($i){return strtoupper(dechex($i));},unpack("L*", base64_decode("wKjHwFWR6Ka5RHopAwMNAg=="))), ""); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment