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