Well, I use CAPICOM for encryption, which M$ wrote. Search in the Codebank. There are lots of techniques there. Capicom encrypts differently every time, and decrypts them all. It uses the system clock, and is very configurable.

Your technique looks good, but I don't know how hard it would be to crack.