I have used MachineKey.Encode to encrypt a ID that is getting passed as a query string to a page but as expected this is making the URL huge.
Is there a option such as HTTP handlers that could customize the url but still load the required page?
Also I am yet to find out if MachineKey.Encode is using the MachineKey that I have defined in my web.config file to encrypt the data, can anybody confirm this for me with web information that backs this up.
Thanks.
It does indeed use the configured keys.
MachineKeycallsMachineKeySection.EncryptOrDecryptDatato perform the encryption, which uses encryption objects configured from the machine key section. If you want to see for yourself, the interesting calls areEncryptOrDecryptData=>EnsureConfig=>ConfigureEncryptionObject=>SetKeyOnSymAlgorithm