|
|
|
|
|
|
|
|
网上很多人在问怎么实现Web系统URL传输(表单提交)参数加密。例如:要进行一个用户帐号编辑,要传递用户的ID,URL如下:http://localhost/mysystem/editAccounts.aspx?ID=2 但又不想让别人知道这个用户的ID为2,恶意的使用者可能还会将2修改,改为别的用户ID。 加密传递的参数值可以解决问题。 以下是自己写的DEC加密、解密的基类。 文件名:Security.CS using System; using System.Security.Cryptography; using System.IO; using System.Text; namespace EIP.Framework { /// /// Security 的摘要说明。 /// Security类实现.NET框架下的加密和解密。 /// CopyRight [email protected]@[email protected] /// public class Sec页码:[1] [2] [3] [4] [5] [6] [7] 第1页、共7页 |
|
|
|
|
设为首页 | 加入收藏 | 广告服务 | 友情链接 | 版权申明
Copyriht 2007 - 2008 © 科普之友 All right reserved |