I am looking for some PHP code that will allow me to do something like take a string name, an expiration date, and a 16-byte key and generate an 8-byte license code in the form of FFFF-FFFF-FFFF-FFFF I have some Windows code that I've used for years, and I successfully ported it to PHP, only to find out that different systems treat integer overflows differently. --Bruce