equal
deleted
inserted
replaced
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 } |