I take it your aim is to prevent people from altering the license expiry? I would imagine if you really wanted to do that, you should use some form of public key cryptography.
Here is an example I found a few years ago that works with XML Digital Signatures: http://www.codeproject.com/Articles/4940...tion-Licen
Edit: Probably best to find one of the libraries that does it for you (from article: "There are many third-party libraries that use similar techniques that are ready for integration into your product(s) and ready for deployment").
Edit #2: Here are a few mentioned: http://stackoverflow.com/questions/42662...-in-delphi
Here is an example I found a few years ago that works with XML Digital Signatures: http://www.codeproject.com/Articles/4940...tion-Licen
Edit: Probably best to find one of the libraries that does it for you (from article: "There are many third-party libraries that use similar techniques that are ready for integration into your product(s) and ready for deployment").
Edit #2: Here are a few mentioned: http://stackoverflow.com/questions/42662...-in-delphi