Beispiel #1
0
 public function testVector()
 {
     /*
      * Test that known cypher text decrypts properly
      */
     $cyphertext = hex2bin('140ad3d278a229ff3c487d');
     $plain = 'Hello World';
     $key = 'asdf';
     $this->assertEquals($plain, Rc4::crypt($cyphertext, $key));
 }