/** * @param string $text * @return string */ private function getAuthenticationToken($text) { return md5(md5($this->config->getPassword()) . $this->config->getLogin() . 'send' . substr($text, 0, self::AUTH_MSG_LENGTH)); }