Temporary file download link with ASP.NET

I’d like to know how I can generate a temporary download address for my file for a limited time. I know that’s not the best practice and probably using HttpHandlers is the way to go according to http://www.devx.com/codemag/Article/34535/1954
But I’m curious to know how I can use urlrewriting to generate a file name using a GUID or some other cryptic naming technique and make it available for a limited time.
I’d appreciate if anyone points me a good article about it.

How to encrypt/decrypt the url in C#

I have a URL www.site-address/site-page/page1.aspx?username=deepu&password=deepu
how can i change the URL to
www.site-address/site-page/page1.aspx?username=232322323232&password=2323232322323
ie i want to encrypt the fields i pass through the URL please help me to encrypt and decrypt the URL in C# using .net,now i am using response.redirect and pass these values as query string….pls help….