private function createKey($ipAdress, $port, $username = null, $password = null)
    {
        $this->key = hash('md5', serialize(array(
            $ipAdress,
            $port,
            $username,
            $password,
        )));
    }