Generating your own hexadecimal encryption keys may be very useful, especially when you are hosting your web application on a web farm of multiple servers. Providing unified security tokens on application level will ensure that your page state will be preserved across postbacks.
If you want to, you can simply type in your encryption keys yourself using the keyboard and your own mind as a randomizer. Just make sure they are of the proper lengths (48 HEX characters for decryptionKey and 128 HEX characters for validationKey) and you are good to go.
If you are feeling more geeky, however, you might want to try the programmatic way of creating your keys. Under normal circumstances, you could use the regular Random class as randomizer, but why not use the more advanced Cryptographic Service Provider, which apparently offers better security? »Read More