[icq-devel] MD5 Login
Svjatoslav Prokipets
svjatpro at gmail.com
Wed Dec 20 15:04:44 CET 2006
Hi,
This is how i do it in C# ( sory, i don't know Java )
---------------------------------
string Password = "123";
byte[] Key ; // key contained in SNAC(17,07 )
................
byte[] passBytes = Tlv.Encoding.GetBytes( Password );
byte[] aim = Tlv.Encoding.GetBytes( "AOL Instant Messenger (SM)" );
MemoryStream ms = new MemoryStream();
ms.Write( Key, 0, Key.Length );
ms.Write( passBytes, 0, passBytes.Length );
ms.Write( aim, 0, aim.Length );
ms.Position = 0;
MD5CryptoServiceProvider md5 =
new MD5CryptoServiceProvider(); // i'm sure that java has
similar MD5 class
byte[] passwordBytes;
passwordBytes = md5.ComputeHash( ms ); // then push it to
SNAC(17,02) Tlv(0x25)
---------------------------------
hope it may helps.
--
Svjatoslav Prokipets
ICQ UIN#285384265
mailto:svjatoslav.prokipets at tpway.com
mailto:svjatpro at gmail.com
More information about the icq-devel
mailing list