fork download
  1. <?php
  2.  
  3. $hi = fopen('php://stdin', "r");
  4. $ho = fopen('php://stdout', "w");
  5.  
  6. while (true) {
  7. $n = fscanf($hi, "%s", $a);
  8. if ($n != 1) break;
  9. fwrite($ho, sprintf("%s = *%s\n", $a, sha1(sha1($a,true))));
  10. }
  11.  
  12. fclose($ho);
  13. fclose($hi);
Success #stdin #stdout 0.01s 20568KB
stdin
trallaa
dsafa
sdf
stdout
trallaa  =  *3d3b45a9a0f1c1c70eb55cf59bfc367bd64e9521
dsafa  =  *0a97a2a20463db78c7770c3bdf2f11e503130d16
sdf  =  *7e1b02628187315a1854df1e4d3a80001fac469c