Example #1
0
 /**
  * @return string
  */
 public function get()
 {
     return $this->byte->get();
 }
Example #2
0
 public function testSetLength()
 {
     $this->byte->setLength(8);
     $this->assertEquals("Mateusz", $this->byte->get());
     $this->assertEquals(8, $this->byte->getLength());
 }
Example #3
0
 public function decrypt(Byte $message)
 {
     return ByteFactory::create(mcrypt_decrypt(MCRYPT_3DES, $this->getKey(), $message->get(), MCRYPT_MODE_CBC, $this->getIv()));
 }