I am Tony ZHOU

Welcome, just another weblog!

  • Home
  • Photo
  • About

16

Sep

用httpmodule自动加密解密query string查询字符串

Posted by Tony ZHOU  Published in ASP.NET

项目中经常遇到query string的加密解密问题,如果在页面或者page base里面处理的话总有点不爽。 所以最近尝试着用httpmodule解决。在网上看到了几篇文章,综合了一下,解决了postback加密过的url丢失的问题。 环境asp.net 2.0 更新于2008-12-31: 楼下有人说不行,我试了一下可以,可能测的不全,如果哪位发现有错误麻烦发个用例代码给我,谢谢! 我的测试打包代码http://iamtonyzhou/uploadfiles/WebSiteHttpModule.zip HttpModule: #region Using using System; using System.IO; using System.Web; using System.Text; using System.Security.Cryptography; #endregion /// <summary> /// Summary description for QueryStringModule /// </summary> public class QueryStringModule : IHttpModule {     #region IHttpModule Members     public void Dispose()     {         // Nothing to dispose     } [...]

Continue reading...

Tags: encrypt, httpmodule, query string, 加密

no comment

Blogroll

  • JinWeiJie

 

September 2009
M T W T F S S
« Apr   Oct »
 123456
78910111213
14151617181920
21222324252627
282930  

Recent Entries

  • Mirror drivers don’t support Aero effects
  • Disable Annoying System Restart Notification after Windows Automatic Updates
  • ILLEGAL ATTEMPT TO ASSOCIATE A COLLECTION WITH TWO OPEN SESSIONS
  • TooManyRowsAffectedException of nHibernate
  • "waitforcatalog" error on live mesh installation
  • Four ways to Create Linq
  • Refactoring Diary 1
  • jQuery plugin, hint tools
  • An excellent mockup tool — Balsamiq
  • Resolve “Playback engine is already initialized and SkipStepThreadEvent”

Recent Comments

  • alfiesaden in Outlook 2007 Conflicts With Google Desktop
  • Anil in Resolve "Cannot find any coverage data (.cove…
  • Theepi in Resolve "Cannot find any coverage data (.cove…
  • test in "waitforcatalog" error on live mesh inst…
  • 淘宝网女装 in 5 Whys Quickly Getting to the Root of a Problem
  • Max in An excellent mockup tool -- Balsamiq
  • jinweijie in "waitforcatalog" error on live mesh inst…
  • emma in Hello world!
  • JIN Weijie in Get translation authorization from Scott Hanselman…
  • JIN Weijie in Hello world!
  • Random Selection of Posts

    • Four ways to Create Linq
    • Error Install MS SQL Server Express in Windows XP SP3 / MSXML6 SP2
    • 用httpmodule自动加密解密query string查询字符串
    • ILLEGAL ATTEMPT TO ASSOCIATE A COLLECTION WITH TWO OPEN SESSIONS
    • 本地cookie被禁用,还有不能调试的问题。
    • 负载均衡下设置Session需要注意的一点,防止Session丢失
    • Outlook 2007 Conflicts With Google Desktop
© 2008 I am Tony ZHOU is proudly powered by WordPress
Theme designed by Roam2Rome