Last active
August 29, 2015 14:16
-
-
Save kmgalanakis/936cbce4ad8d1dd20904 to your computer and use it in GitHub Desktop.
Unpacking base_64 encoded integers and booleans
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
<?php | |
$data = "AAAB4Q=="; | |
$raw = base64_decode($data); | |
print_r(unpack('Nint',$raw)); | |
echo "<br/>"; | |
$data = "AQ=="; | |
$raw = base64_decode($data); | |
print_r(unpack('Cbool',$raw)); | |
echo "<br/>"; | |
$data = "///77A=="; | |
$raw = base64_decode($data); | |
print_r(unpack('Nint',$raw)); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment