tachyon's code above is esp. neat, tho i hope that he sets certain provisos against it's use in a RFID context ie:
please please please don't start flashing dimensional warp generator adverts at me when i enter barnes & noble wearing the latest RFID enabled clothes...
...wufnik
-- in the world of the mules there are no rules --