What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [Release] Dencryptor v1.60

[Release] Dencryptor v1.60
Author: Message:
phalanxii
Full Member
***


Posts: 146
Reputation: 5
32 / Male / Flag
Joined: Aug 2006
Status: Away
O.P. RE: [Release] Dencryptor v1.20
I never saved my original AutoDecrypt function because it never worked, but I recreated this one, which should be the same. (Note: This is for the normal encryption, without ASCII characters.)
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind) {
   if(AutoDecrypt && /^[0-9a-z]+$/i.test(Message)) {
      var Decryption = Decrypt(Message, Key);
      if(Origin == Messenger.MyName) {
         Debug.Trace(" Encrypted message sent by current user.\n  Decrypted: " + Decryption);
         return Decryption;
      }
      else {
         Debug.Trace(" Encrypted message sent by contact.\n  Decrypted: " + Decryption);
         return Decryption;
      }
   }
}
From the debugger, the script knows when the message is an encryption and whether it is sent by yourself. It also displays the decryption properly. It's just in the conversation window that it doesn't show the decryption. (The decryption should technically be at least one character shorter than the encryption, though this is only when the size is 1. With the default of 2, the decryption is less than half the length.)
quote:
Originally posted by SpunkyLoveMuff
If the source is openly editable by the user, it can be easily cracked can't it? Meaning that the whole thing would be useless? I'm liking the idea anyway and might give it a try for a bit :p

Yes, I had thought about that, which is why I put in the whole key idea. :D Basically, you and the contact need to have the same key, otherwise you'll get completely random encryptions/decryptions. If you open up the source, you'll see that the encryption is VERY key-dependent:
   1. The key generates a cipher which the message is passed through.
   2. The key generates a sum (of the character codes) which adds and subtracts from each alternating character in the message.
That way, even if you know how to crack the code, you don't know what the key is to crack it with. :P

PS. Prefixed commands are on their way! ;)

This post was edited on 09-23-2006 at 11:07 AM by phalanxii.
09-23-2006 11:05 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[Release] Dencryptor v1.60 - by phalanxii on 09-21-2006 at 06:23 AM
RE: [Release] Dencryptor v1.00 - by NiteMare on 09-21-2006 at 06:52 AM
RE: [Release] Dencryptor v1.20 - by phalanxii on 09-23-2006 at 03:02 AM
RE: [Release] Dencryptor v1.20 - by Chris4 on 09-23-2006 at 03:31 AM
RE: [Release] Dencryptor v1.20 - by Matti on 09-23-2006 at 09:06 AM
RE: RE: [Release] Dencryptor v1.20 - by phalanxii on 09-23-2006 at 09:25 AM
RE: [Release] Dencryptor v1.20 - by Shondoit on 09-23-2006 at 09:36 AM
RE: [Release] Dencryptor v1.20 - by Spunky on 09-23-2006 at 10:47 AM
RE: [Release] Dencryptor v1.20 - by phalanxii on 09-23-2006 at 11:05 AM
RE: [Release] Dencryptor v1.20 - by Spunky on 09-23-2006 at 11:07 AM
RE: [Release] Dencryptor v1.20 - by phalanxii on 09-23-2006 at 11:13 AM
RE: [Release] Dencryptor v1.20 - by Spunky on 09-23-2006 at 11:22 AM
RE: [Release] Dencryptor v1.20 - by Shondoit on 09-23-2006 at 11:56 AM
RE: [Release] Dencryptor v1.20 - by phalanxii on 09-23-2006 at 12:12 PM
RE: RE: [Release] Dencryptor v1.20 - by CookieRevised on 09-23-2006 at 05:47 PM
RE: [Release] Dencryptor v1.27 - by Jesus on 09-23-2006 at 05:02 PM
RE: [Release] Dencryptor v1.27 - by Matti on 09-23-2006 at 05:07 PM
RE: RE: [Release] Dencryptor v1.27 - by phalanxii on 09-24-2006 at 01:29 AM
RE: [Release] Dencryptor v1.50 - by phalanxii on 09-24-2006 at 11:54 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