예제 #1
0
파일: Key.php 프로젝트: mszula/php-newcamd
 /**
  * @return string
  */
 public function get()
 {
     return $this->byte->get();
 }
예제 #2
0
 public function testSetLength()
 {
     $this->byte->setLength(8);
     $this->assertEquals("Mateusz", $this->byte->get());
     $this->assertEquals(8, $this->byte->getLength());
 }
예제 #3
0
 public function decrypt(Byte $message)
 {
     return ByteFactory::create(mcrypt_decrypt(MCRYPT_3DES, $this->getKey(), $message->get(), MCRYPT_MODE_CBC, $this->getIv()));
 }