What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Tool to encrypt or decrypt log files

Tool to encrypt or decrypt log files
Author: Message:
CookieRevised
Elite Member
*****

Avatar

Posts: 15519
Reputation: 173
– / Male / Flag
Joined: Jul 2003
Status: Away
RE: Tool to encrypt or decrypt log files
There are many things wrong though. If that is your entire code, it will never work properly. Instead post everything, including declarations.

Either way, with such an 'old' and dirty code style debugging is very difficult. Determining why that last API fails is the least of your worries.

Start by at least properly declaring and initializing all your variables! Especially if you are using Windows APIs it is essential you use proper code style and don't rely on defaults and the Variant types. Also note that there is no 'decimal' type in VB.

Second, you need to know the difference between unicode and ansi strings and how VB handles them, and thus how to implement it properly. For example, your password is not send as unicode to the APIs to begin with. Also learn what byte arrays are and the proper way to handle them and how they relate to ansi and unicode strings.

Third, the routines (cryptogrpahic provider and context) for decrypting a Messenger Plus! log might have changed since that first post in this thread, so using those might only work for old logs.

Fourth, you can't simply use the entire contents of the encrypted log file like that! It has a specific format with a header, data, contents, etc.

---

So, in a nutshell, there is so much wrong with that code that correcting it would simply result in giving you a complete working code. It is not a matter of just fixing a line or two, it needs a complete rewrite from scratch. Hence my next question and comments:

Have you programmed in VB before or is this one of your first things you've programmed? Because that entire code looks like it has been made by a first-time programmer, no offense though (everybody needs to start somewhere). But if it is one of your first programs, I strongly suggest to first learn a few things (eg: proper ansi/unicode handling and how VB handles it internally, proper binary file reading, etc) and first make easier things you completely understand, before copy/pasting and trying to make your own logfile decrypter.

This post was edited on 03-10-2011 at 12:21 AM by CookieRevised.
.-= A 'frrrrrrrituurrr' for Wacky =-.
03-09-2011 11:58 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Tool to encrypt or decrypt log files - by solus on 01-09-2006 at 07:25 PM
RE: Tool to encrypt or decrypt log files - by WDZ on 01-13-2006 at 09:44 PM
RE: Tool to encrypt or decrypt log files - by Dane on 01-16-2006 at 08:03 AM
RE: Tool to encrypt or decrypt log files - by ipab on 01-16-2006 at 08:57 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-16-2006 at 09:11 AM
RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 07:19 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-16-2006 at 07:26 PM
RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 07:31 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-16-2006 at 08:19 PM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 08:32 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-16-2006 at 08:40 PM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-16-2006 at 10:03 PM
RE: Tool to encrypt or decrypt log files - by dotNorma on 01-18-2006 at 01:18 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 06:53 AM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 08:26 AM
RE: RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 06:18 PM
RE: RE: RE: RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 06:22 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 06:55 PM
RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 09:04 PM
RE: Tool to encrypt or decrypt log files - by ostehaps on 01-18-2006 at 09:05 PM
RE: RE: Tool to encrypt or decrypt log files - by solus on 01-18-2006 at 09:21 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 09:33 PM
RE: RE: Tool to encrypt or decrypt log files - by ostehaps on 01-18-2006 at 09:36 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-18-2006 at 09:42 PM
RE: Tool to encrypt or decrypt log files - by Patchou on 01-19-2006 at 03:59 AM
RE: Tool to encrypt or decrypt log files - by ipab on 01-19-2006 at 04:16 AM
RE: Tool to encrypt or decrypt log files - by qgroessl on 01-19-2006 at 04:32 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-19-2006 at 11:06 AM
RE: RE: Tool to encrypt or decrypt log files - by brian on 01-19-2006 at 11:57 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 01-20-2006 at 03:03 AM
RE: Tool to encrypt or decrypt log files - by Patchou on 01-20-2006 at 09:52 AM
RE: Tool to encrypt or decrypt log files - by riahc4 on 01-21-2006 at 08:03 PM
RE: Tool to encrypt or decrypt log files - by Millenium_edition on 01-21-2006 at 08:14 PM
RE: Tool to encrypt or decrypt log files - by brainy on 02-16-2006 at 02:55 AM
RE: Tool to encrypt or decrypt log files - by Plik on 02-16-2006 at 08:39 AM
RE: Tool to encrypt or decrypt log files - by brainy on 02-16-2006 at 11:51 AM
RE: Tool to encrypt or decrypt log files - by Iv4n on 06-23-2006 at 01:57 PM
RE: Tool to encrypt or decrypt log files - by Patchou on 06-23-2006 at 04:21 PM
RE: Tool to encrypt or decrypt log files - by marie-canard on 09-19-2006 at 09:18 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 09-19-2006 at 11:33 PM
RE: Tool to encrypt or decrypt log files - by marie-canard on 09-20-2006 at 06:07 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 09-20-2006 at 06:30 AM
RE: Tool to encrypt or decrypt log files - by marie-canard on 09-20-2006 at 07:21 AM
RE: Tool to encrypt or decrypt log files - by cloudhunter on 09-20-2006 at 08:53 AM
RE: Tool to encrypt or decrypt log files - by tomi206 on 02-08-2007 at 03:43 PM
RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-09-2007 at 10:17 AM
RE: RE: RE: Tool to encrypt or decrypt log files - by tomi206 on 02-09-2007 at 03:13 PM
RE: RE: RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-09-2007 at 11:04 PM
RE: Tool to encrypt or decrypt log files - by Vilkku on 02-08-2007 at 04:27 PM
RE: Tool to encrypt or decrypt log files - by tomi206 on 02-08-2007 at 05:32 PM
RE: Tool to encrypt or decrypt log files - by solus on 02-09-2007 at 11:30 PM
RE: Tool to encrypt or decrypt log files - by Baggins on 02-09-2007 at 11:47 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-19-2007 at 08:41 PM
RE: Tool to encrypt or decrypt log files - by Juen on 02-27-2007 at 05:45 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-27-2007 at 11:22 PM
RE: Tool to encrypt or decrypt log files - by Patchou on 02-27-2007 at 11:53 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 02-28-2007 at 03:03 AM
RE: Tool to encrypt or decrypt log files - by bigproblem on 06-06-2007 at 04:38 AM
RE: RE: Tool to encrypt or decrypt log files - by Noproblemo on 06-27-2007 at 05:00 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 06-28-2007 at 01:14 AM
RE: Tool to encrypt or decrypt log files - by Taborda on 07-07-2007 at 10:20 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 07-07-2007 at 11:26 PM
RE: RE: Tool to encrypt or decrypt log files - by Noproblemo on 07-15-2007 at 08:20 PM
RE: RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 07-16-2007 at 02:52 AM
RE: Tool to encrypt or decrypt log files - by BloodBlader on 11-19-2007 at 03:04 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 11-19-2007 at 07:02 PM
RE: Tool to encrypt or decrypt log files - by alextrevelian on 02-10-2008 at 01:09 AM
RE: Tool to encrypt or decrypt log files - by thegpfury on 06-25-2008 at 05:44 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 06-25-2008 at 09:21 PM
RE: Tool to encrypt or decrypt log files - by thegpfury on 06-25-2008 at 10:37 PM
RE: Tool to encrypt or decrypt log files - by Flamer46 on 09-07-2008 at 04:03 PM
RE: Tool to encrypt or decrypt log files - by rullen on 09-24-2009 at 03:06 PM
RE: Tool to encrypt or decrypt log files - by matty on 09-24-2009 at 03:32 PM
RE: RE: Tool to encrypt or decrypt log files - by rullen on 09-28-2009 at 08:51 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 09-25-2009 at 01:43 AM
RE: Tool to encrypt or decrypt log files - by Dythor on 03-22-2010 at 08:24 PM
RE: RE: Tool to encrypt or decrypt log files - by CookieRevised on 03-23-2010 at 12:53 AM
RE: Tool to encrypt or decrypt log files - by Dythor on 03-31-2010 at 08:35 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 04-01-2010 at 02:47 AM
RE: Tool to encrypt or decrypt log files - by willy469 on 03-09-2011 at 06:09 PM
RE: Tool to encrypt or decrypt log files - by matty on 03-09-2011 at 06:11 PM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 03-09-2011 at 11:58 PM
RE: Tool to encrypt or decrypt log files - by willy469 on 03-10-2011 at 01:38 AM
RE: Tool to encrypt or decrypt log files - by CookieRevised on 03-10-2011 at 08:00 AM
RE: Tool to encrypt or decrypt log files - by willy469 on 03-12-2011 at 01:55 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On