- <?php
- $b64="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
- /*,
- "dV1PVRF+XFFGWkReXVBB",
- "dV1PVRF/VVFGWkReXVlB",
- "dV1PVRF/VFFGWkReXVhB",
- "dV1PVRF/V1FGWkReXVtB");*/
- $tbin="";
- $stra=array("dV1PVRF+XVFGWkReXFFB");
- $blen=strlen($b64);
- $len=strlen($stra[0]);
- echo "<table><tr>";
- for($q=0;$q<count($stra);$q++)
- {
- for($y=0;$y<$len;$y++)
- {
- for($x=0;$x<$blen;$x++)
- {
- if($stra[$q]{$y}==$b64{$x})
- {
- $tmp=decbin($x);
- if(strlen($tmp)<6)
- {
- while(strlen($tmp)!=6)
- {
- $tmp="0".$tmp;
- }
- }
- $tbin.=$tmp;
- echo "<td>".$tmp."</td>";
- }
- }
- }
- echo "</tr><tr>";
- }
- echo "</table>";
- echo $tbin;
- $binarr=str_split($tbin,8);
- foreach($binarr as $val)
- {
- echo bindec($val)." ";
- }
- echo "<br>";
- $zz="2454108";
- $y=0;
- for($x=0;$x<15;$x++)
- {
- if($y==7)
- $y=0;
- printf("%c",bindec($binarr[$x])^ord($zz{$y}));
- $y++;
- }
- ?>
Posted by zzzzz on Thu 11th Jan 04:45
download | new post
Submit a correction or amendment below. (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.