fork(1) download
  1. <?php
  2.  
  3. function encryptDecrypt($toEncrypt)
  4. {
  5. $key= array( '1', '2', '3', '4', '5', '6', '7', '8', '9' );
  6. $key_len = count($key);
  7. $output = $toEncrypt;
  8. for ($i = 0; $i < strlen($toEncrypt); $i++)
  9. {
  10. $output[$i] = $toEncrypt[$i] ^ $key[$i % $key_len];
  11. }
  12.  
  13. return $output;
  14. }
  15.  
  16. printf(encryptDecrypt("test"));
Success #stdin #stdout 0.01s 24400KB
stdin
Standard input is empty
stdout
EW@@