예제 #1
0
 public function testGetLengthSpread()
 {
     $this->key->setDesKey(\Newcamd\ByteFactory::create('0102030405060708091011121314'));
     $this->assertEquals(16, $this->key->getLength());
 }
예제 #2
0
 private function setSessionKey(ServerMessage\Request\Login $login)
 {
     $session_key = new Key($this->config->getDesKey());
     $session_key->setDesKey(ByteFactory::create($login->getPassword()));
     $this->cipher->setKey($session_key);
     return $this;
 }