public class FileHelper
    {
        public static string Encrypt(string filename)
        {
            byte[] buffer = HttpContext.Current.Request.ContentEncoding.GetBytes(filename);
            return HttpUtility.UrlEncode(Convert.ToBase64String(buffer));
        }
        public static string Decrypt(string encryptfilename)
        {
            byte[] buffer = Convert.FromBase64String(encryptfilename);
            return HttpContext.Current.Request.ContentEncoding.GetString(buffer);
        } 
    }
===========================
protected void Page_Load(object sender, EventArgs e)
        {
            string url = FileHelper.Encrypt("aaa.txt");
            link.NavigateUrl = "~/download.aspx?fn=" + url; 
        }
这是网上的一个程序中的类,为什么这个类中加密时用UrlEncode加码了。然后把这个值传到另一个网页中后,在揭秘时为什么就不用urldecode了。不用配对吗
求高手