fork download
  1. <?php
  2. $iv = str_repeat("\0", 16);
  3. $key = str_repeat("\0", 16);
  4. $picc= hex2bin("CACDEC6C5455EE52BB1DA40470963113");
  5. $picc= "01000000000000000100";
  6. // 12345678901234567890
  7. // $cipher = new AES\CBC($key, $iv);
  8. // $decrypted_data = $cipher->decrypt(hex2bin($encrypted_data));
  9.  
  10. $counter = hexdec(substr($picc, 0, 4));
  11.  
  12. echo $counter;
  13.  
  14. ?>
Success #stdin #stdout 0.02s 25696KB
stdin
Standard input is empty
stdout
256