On 20/2/02 11:16 am, Ben Rubinstein <[EMAIL PROTECTED]> wrote: > A function which returns a reasonable checksum (eg CRC-32) of a source of > value. Unless this is already in, and I've missed it? > > Simple but useful (I've got it as XFCN, but I really want it cross-platform, > and I think I'm too old to start making Windows externals...) (I'd happily > send Scott the source if it would be useful - but I swiped it from > comp.compression FAQ anyway, according to my notes.) > > The particular need I have for it now is because I want to distribute an app > which will be configured for each client using 'scripts' (not transcript) > sored in XML files external to the app (ie in a config folder). I'd like to > have the option of 'signing' these scripts in some way, which doesn't > prevent me sending modified versions by email etc, but so that someone else > can't create new scripts and hijack the functionality built into the app. > Adding a checksum attribute to the outer element of the script, with a > utility I can use to calculate it on the basis of the content of this script > plus a hidden phrase, would seem like a very simple approach. (Other > suggestions for how to achieve this welcome.) > > But I've also used the XFCN over the years in a number of utilities for > checking and comparing files, ensuring the integrity of data, and so on. A > simple, fast, routine built in to Rev/MC would be very useful.
You can use the MD5Digest() function for this. Kevin Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/> Runtime Revolution Limited - Power to the Developer! Tel: +44 (0) 870 747 1165. Fax: +44 (0)1639 830 707. _______________________________________________ improve-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/improve-revolution
