Beispiel #1
0
 public function testDecrypt()
 {
     $keys = System_Rsa_Keygen::Generate();
     $rsa = new System_Rsa_Rsalib($keys['module'], $keys['public'], $keys['private']);
     $output = $rsa->encrypt($this->_testString);
     $output = $rsa->decrypt($output);
     $this->assertEquals($this->_testString, $output);
 }