熱點推薦:
您现在的位置: 電腦知識網 >> 編程 >> .NET編程 >> 正文

.NET中加密與解密QueryString的方法

2013-11-13 12:19:42  來源: .NET編程 
    加密

  ResponseRedirect(DetailInfoaspx?id= + ConvertToBaseString(SystemTextEncodingDefaultGetBytes(sp))Replace(+%B));

  解密

  string ID = SystemTextEncodingDefaultGetString(ConvertFromBaseString(RequestQueryString[id]ToString()Replace(%B+)));


From:http://tw.wingwit.com/Article/program/net/201311/15667.html
    推薦文章
    Copyright © 2005-2013 電腦知識網 Computer Knowledge   All rights reserved.