test crypt - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of test crypt.php
- <?php
- $param = round(microtime(true) * 1000);
- $param = base64_encode($param."xx");
- echo $param;
- echo "\r\n";
- $p = substr(uniqid(),-3);
- $q = substr(uniqid(),-1);
- echo "\r\n";
- $token = $p.$param.$q;
- echo $token;
- echo "\r\n";
- echo base64_decode($controllo);
- echo ""\r\n";
- $controllo = substr($token,3,-1);
- echo $controllo;
- echo "\r\n";
- $controllo = substr(base64_decode($controllo),0,-2);
- echo $controllo;
- $ora = round(microtime(true) * 1000);
- $diff = $ora-$controllo;
- echo "\r\n";
- echo $diff;