From: Oleg Sukhanov <bh@kaznaufk.amur.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Как Psi кодирует пароль?
Date: Fri, 24 Jun 2005 13:41:15 +1000
Message-ID: <42BB80DB.6020604@kaznaufk.amur.ru> (raw)
In-Reply-To: <20050624023501.GE7674@wrars-comp.wrarsdomain>
Andrey Rahmatullin wrote:
>>Забыл пароль на jabber аккаунт. Сам пароль в конфиге записан. Как
>>его раскодировать?
> Попробуйте decodePassword() из src/common.cpp.
QString decodePassword(const QString &pass, const QString &key)
{
QString result;
unsigned int n1, n2;
if(key.length() == 0)
return pass;
for(n1 = 0, n2 = 0; n1 < pass.length(); n1 += 4) {
ushort x = 0;
if(n1 + 4 > pass.length())
break;
x += hexChar2int(pass.at(n1))*4096;
x += hexChar2int(pass.at(n1+1))*256;
x += hexChar2int(pass.at(n1+2))*16;
x += hexChar2int(pass.at(n1+3));
QChar c(x ^ key.at(n2++).unicode());
result += c;
if(n2 >= key.length())
n2 = 0;
}
return result;
}
ОЙ! А можно рассказать, как это руками сделать? А то пока я это
откомпилю, много воды утечёт.
next prev parent reply other threads:[~2005-06-24 3:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-24 1:32 Oleg Sukhanov
2005-06-24 2:35 ` Andrey Rahmatullin
2005-06-24 3:41 ` Oleg Sukhanov [this message]
2005-06-24 13:57 ` Andrey Rahmatullin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=42BB80DB.6020604@kaznaufk.amur.ru \
--to=bh@kaznaufk.amur.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git