What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Announcements » Announcements & News » Archive » Script? did I hear script?

2 votes - 5 average   Script? did I hear script?
Author: Message:
FoboldFKY
New Member
*


Posts: 8
– / Male / –
Joined: Feb 2003
RE: Script? did I hear script?
I've been doing some poking around, and I think I know how Patchou could implement digital 'signing' on the scripts.

Note: this is very long, and possibly quite boring.  Unless you find cryptography very exciting, I'd just skip to the bottom...

The first part would be to make an actual wrapper for the scripts.  This format could include things like what engine to use (JScript, VBScript, PerlScript, BobScript :P), author details, script name, and actions.  You would also store any digital certificates here.

In regards to actions, for example, a single script file could contain a method to display a list of all contacts who had logged in recently, and a method to send a message to all open IM windows.  These could be run by having some way for the script file to define menus to insert into the interface (which is relatively easy).  This means people could release script 'packs' under one file with lots of different bits of functionality.   This is also where you would set up what events your script wants to handle.

Now, for digital certificates, the way I understand it currently is that you store the various bits of information (such as Script Name, Author, Checked By, Date Checked, Safety Level, etc.) in plain, unencrypted format.  Then, you calculate the certificate's digest (using MD5, or another similar hashing algorithm), and then encrypt that digest using a private key.  This private key would be unique to, say, the group validating the scripts.  They then publish their public key on the web for people to download.  BTW: all this encryption/decryption would need to be done by a private/public algorithm like RSA or PGP.

Now, the user downloads the script from the site, and Plus! tells the user that the script is digitally signed, but it doesn't know by who...  So, the user gets onto the Plus! site, and downloads the public key.  Plus! then calculates the certificate's digest again, and uses the public key to decrypt the digest stored in the script file.  It compares them, and if they match, then it's an authentic digital certificate.  If it doesn't match, then the certificate has been modified.

Of course, this is all good and dandy for the certificate, but what about the script?  I think the best approach would be to calculate a digest (and possibly the CRC32 as well) of the actual scripts themselves, and store this in the digital certificate.

And finally, I would recommend AGAINST building this public key into Plus!  It doesn't need to be a big secret, although I believe it would be much safer if the user had to explicitly say "Yes, I trust scripts signed by this group", so that someone can't just go and make their own digital certificates.  Also, since Plus! is an internet application, it might be worth considering the following:

Instead of storing the public key ON the machine, force Plus! to download it each time it wants to validate a script, and then remove it afterwards.  The advantage of this is that a script cannot overwrite the existing public key with it's own, so that it can forge digital certificates.  The downside is how to we stop this from happening at startup EACH time?  I haven't quite worked out a secure method for that yet, but I'll post again if I get any ideas (beside, I'm sure you've had enough of me talking by now :D)

So what does all that mean in layman's terms?  When people on some sort of script review board check a script, and determine that it is safe to use, they digitally sign it.  Then, when the user downloads the script for the first time, they are asked by Plus! if they trust this script, which has been signed by this particular group (which CANNOT be automated or skipped).  If they answer yes, the script would be installed, and ready for use (although they may need to explicitly enable the script).  If the script has no digital certificate, they should be informed of this, and asked if they really want to authorise it.

You could even provide a link to check if there's a signed version on the Plus! site...

Anyway, hope this has been of some help to someone :)
02-07-2003 03:21 AM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Script? did I hear script? - by Patchou on 09-25-2002 at 08:12 PM
Here comes the n00b... - by fluffy_lobster on 11-24-2002 at 07:32 PM
RE: Here comes the n00b... - by cynix on 11-24-2002 at 07:56 PM
RE: Script? did I hear script? - by WDZ on 11-24-2002 at 08:01 PM
RE: Script? did I hear script? - by Skie on 11-24-2002 at 08:17 PM
RE: Script? did I hear script? - by blue_gough on 12-06-2002 at 05:00 PM
RE: Script? did I hear script? - by ginge on 12-08-2002 at 09:33 PM
RE: Script? did I hear script? - by bkwoodroff on 12-08-2002 at 09:43 PM
RE: Script? did I hear script? - by shine on 12-10-2002 at 07:00 AM
RE: Script? did I hear script? - by Cammo01 on 12-17-2002 at 04:29 PM
RE: Script? did I hear script? - by ginge on 12-17-2002 at 05:01 PM
RE: Script? did I hear script? - by RealmMaster on 12-17-2002 at 06:31 PM
RE: RE: Script? did I hear script? - by WDZ on 12-17-2002 at 09:45 PM
RE: RE: Script? did I hear script? - by the non_spam fakedage on 01-14-2003 at 07:33 AM
RE: Script? did I hear script? - by reisyboy on 12-17-2002 at 06:52 PM
RE: Script? did I hear script? - by quark on 12-19-2002 at 11:52 PM
RE: Script? did I hear script? - by WDZ on 12-20-2002 at 12:05 AM
RE: Script? did I hear script? - by Patchou on 12-20-2002 at 06:34 PM
RE: RE: Script? did I hear script? - by quark on 12-31-2002 at 03:21 AM
RE: Script? did I hear script? - by AI on 12-21-2002 at 12:07 PM
RE: Script? did I hear script? - by WDZ on 12-21-2002 at 05:49 PM
RE: Script? did I hear script? - by AI on 12-21-2002 at 08:36 PM
RE: Script? did I hear script? - by Skie on 01-02-2003 at 02:19 AM
RE: Script? did I hear script? - by Alpha Binary on 01-04-2003 at 05:09 PM
RE: RE: Script? did I hear script? - by MoRiA on 01-11-2003 at 03:20 PM
RE: Script? did I hear script? - by [white]shark on 01-12-2003 at 05:04 PM
RE: Script? did I hear script? - by the non_spam fakedage on 01-14-2003 at 07:20 AM
RE: Script? did I hear script? - by the non_spam fakedage on 01-14-2003 at 07:25 AM
RE: Script? did I hear script? - by sock on 01-14-2003 at 11:00 AM
RE: RE: Script? did I hear script? - by Dogga on 01-31-2003 at 09:14 AM
RE: Script? did I hear script? - by Swaptor on 01-14-2003 at 11:53 AM
RE: Script? did I hear script? - by jamesc on 01-15-2003 at 12:44 AM
RE: Script? did I hear script? - by dennistt on 01-15-2003 at 02:11 AM
RE: Script? did I hear script? - by alvarezp on 01-15-2003 at 11:00 AM
RE: Script? did I hear script? - by MoRiA on 01-15-2003 at 04:31 PM
RE: Script? did I hear script? - by alvarezp on 01-26-2003 at 07:10 AM
RE: Script? did I hear script? - by JustMe on 01-26-2003 at 06:42 PM
RE: Script? did I hear script? - by MoRiA on 01-26-2003 at 08:22 PM
RE: Script? did I hear script? - by fleetadmiralmatt on 01-31-2003 at 06:46 AM
RE: Script? did I hear script? - by ryan_the_leach on 01-31-2003 at 11:06 PM
RE: Script? did I hear script? - by fluffy_lobster on 02-01-2003 at 05:14 PM
RE: Script? did I hear script? - by dRu18 on 02-03-2003 at 10:31 PM
RE: Script? did I hear script? - by FoboldFKY on 02-04-2003 at 05:32 AM
RE: Script? did I hear script? - by [white]shark on 02-04-2003 at 09:24 AM
RE: Script? did I hear script? - by fluffy_lobster on 02-04-2003 at 07:03 PM
RE: Script? did I hear script? - by [white]shark on 02-05-2003 at 08:19 AM
RE: Script? did I hear script? - by alvarezp on 02-06-2003 at 08:24 AM
RE: Script? did I hear script? - by [white]shark on 02-06-2003 at 10:40 AM
RE: Script? did I hear script? - by chepibe16 on 02-06-2003 at 05:59 PM
RE: Script? did I hear script? - by FoboldFKY on 02-07-2003 at 01:08 AM
RE: Script? did I hear script? - by FoboldFKY on 02-07-2003 at 03:21 AM
RE: Script? did I hear script? - by alvarezp on 02-07-2003 at 10:27 AM
RE: Script? did I hear script? - by FoboldFKY on 02-08-2003 at 02:12 PM
RE: Script? did I hear script? - by [white]shark on 02-10-2003 at 08:17 AM
RE: Script? did I hear script? - by alvarezp on 02-11-2003 at 12:13 AM
RE: Script? did I hear script? - by [white]shark on 02-11-2003 at 09:05 AM
RE: Script? did I hear script? - by fluffy_lobster on 02-12-2003 at 05:15 PM
RE: Script? did I hear script? - by user2319 on 02-12-2003 at 07:32 PM
[no subject] - by WDZ on 09-25-2002 at 08:30 PM
[no subject] - by reisyboy on 09-25-2002 at 08:32 PM
[no subject] - by Patchou on 09-25-2002 at 08:51 PM
[no subject] - by WDZ on 09-25-2002 at 09:00 PM
[no subject] - by reisyboy on 09-25-2002 at 09:05 PM
[no subject] - by WDZ on 09-25-2002 at 09:13 PM
[no subject] - by reisyboy on 09-25-2002 at 09:37 PM
[no subject] - by Muss on 09-26-2002 at 01:46 AM
[no subject] - by Patchou on 09-26-2002 at 02:07 AM
[no subject] - by shine on 09-26-2002 at 04:39 AM
[no subject] - by Chrono on 09-27-2002 at 03:44 AM
[no subject] - by ginge on 09-27-2002 at 09:11 AM
[no subject] - by Menthix on 09-27-2002 at 09:47 AM
[no subject] - by Patchou on 09-27-2002 at 01:36 PM
[no subject] - by Johnny_Mac on 09-27-2002 at 02:41 PM
[no subject] - by reisyboy on 09-27-2002 at 05:15 PM
[no subject] - by ginge on 09-27-2002 at 05:19 PM
[no subject] - by Patchou on 09-27-2002 at 06:46 PM
[no subject] - by ginge on 09-27-2002 at 07:11 PM
[no subject] - by WDZ on 09-27-2002 at 08:40 PM
[no subject] - by Patchou on 09-27-2002 at 08:56 PM
[no subject] - by ginge on 09-27-2002 at 09:17 PM
[no subject] - by reisyboy on 09-27-2002 at 09:37 PM
[no subject] - by WDZ on 09-27-2002 at 09:47 PM
[no subject] - by reisyboy on 09-27-2002 at 09:51 PM
[no subject] - by ginge on 09-27-2002 at 09:57 PM
[no subject] - by reisyboy on 09-27-2002 at 10:00 PM
[no subject] - by shine on 09-28-2002 at 06:11 AM
[no subject] - by reisyboy on 09-28-2002 at 09:20 AM
[no subject] - by Patchou on 09-28-2002 at 07:44 PM
[no subject] - by ginge on 09-28-2002 at 07:47 PM
[no subject] - by reisyboy on 09-28-2002 at 07:50 PM
[no subject] - by ginge on 09-28-2002 at 07:53 PM
[no subject] - by Patchou on 09-29-2002 at 04:28 AM
[no subject] - by Muss on 09-29-2002 at 04:56 AM
[no subject] - by alvarezp on 10-06-2002 at 11:57 AM
[no subject] - by Patchou on 10-14-2002 at 03:25 PM
[no subject] - by ginge on 10-14-2002 at 04:39 PM
[no subject] - by dudboi on 11-24-2002 at 09:10 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