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. Ben Rubinstein | Email: [EMAIL PROTECTED] Cognitive Applications Ltd | Phone: +44 (0)1273-821600 http://www.cogapp.com | Fax : +44 (0)1273-728866 _______________________________________________ improve-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/improve-revolution
