includes/email.php
changeset 110 68e030f8dfa6
parent 73 0a74676a2f2f
child 142 ca9118d9c0f2
equal deleted inserted replaced
109:93ef7df77847 110:68e030f8dfa6
   366         $this->p = $this->primes[$i];
   366         $this->p = $this->primes[$i];
   367         $this->q = $this->primes[$j];
   367         $this->q = $this->primes[$j];
   368         if($this->p*$this->q < 255)
   368         if($this->p*$this->q < 255)
   369           break;
   369           break;
   370         $k = $this->makeKey($allCharacters);
   370         $k = $this->makeKey($allCharacters);
   371         die('<pre>'.print_r($k, true).'</pre>');
       
   372         $encrypted = $k['X'];
   371         $encrypted = $k['X'];
   373         $decrypted = $this->goForth($encrypted,$this->p*$this->q,$k['D']);
   372         $decrypted = $this->goForth($encrypted,$this->p*$this->q,$k['D']);
   374         if($decrypted != $allCharacters) {
   373         if($decrypted != $allCharacters) {
   375           die('Test failed');
   374           die('Test failed');
   376         }
   375         }