Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 13:47

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: VB.NET SteamPWD
PostPosted: 07 Apr 2008 08:02 

Joined: 07 Apr 2008 07:59
Posts: 1
I've been in the process of converting STEAMPWD to VB.NET for use in my own application. Using the app as reference, and the details in the Delphi topic I've gotten it to output the password, but there's a problem.
Essentially, as an example, if the password is badpassword11, then the padding length byte, the padding bytes, and the password get printed, however only the character portions of it print correctly(ie badpassword) the remainder prints out as garbage characters.

My only thought is that my character encoding is wrong, but I've tried all the available ones I know of in VB, any ideas?


Top
 Profile  
 
 
 Post subject:
PostPosted: 07 Apr 2008 10:12 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
if you have used the AES solution this is probably caused by the problem I explained in that topic.
In short the AES CFB applied by crypto++ uses the XORing method normally used in the decryption for the encryption... so you must modify the source code of your AES function inverting that part as I did for steampwd in aes_inverted.c, from:

if( mode == AES_ENCRYPT )
to:
if( mode != AES_ENCRYPT ) // inverted!!!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: