请问三层的程序怎么加密啊(50分)

  • 主题发起人 主题发起人 sunboy666
  • 开始时间 开始时间
S

sunboy666

Unregistered / Unconfirmed
GUEST, unregistred user!
我做了一个三层的测试<br>应用服务器用的是adoconnection+adotable+datasetprovider<br>客户端socketconnection+clientdataset+datasource+dbgird显示内容<br>请问这样的三层程序加密怎么写啊<br>谢谢了
 
IDataBlock DataIn DataOut中处理。<br><br>在Delphi安装目录下的Demos中intrcpt.dpr
 
进行二次加密...
 
就是数据传输过程中加密吗?<br>那加密和解密都放在客户端就成,存到数据库中的数据就一直是加密的,除非用你的客户端,否则读出来的都是乱码。
 
seawolf2000,我瞧瞧去,谢谢
 
lngdtommy, 是传输过程加密<br>具体怎么操作呢?<br>最好有这样的例子程序<br>谢谢了
 
在SOCKET与DS之间可以进行加密和压缩,也就是我们所说的SOCKET封包处理------------这样做了以后数据的传输执行效率会好很多,特别是连接数过多时
 
请问luoyanqing119<br>你有没有例子程序哦<br>我还是不知道具体怎么操作<br>麻烦你最好有个源代码例子<br>谢谢了
 
seawolf2000,<br>直接那样用就可以了吗?<br>你是怎么做的<br>谢谢了
 
LZ,你留个邮箱后我整理下发给你吧
 
tosunmoon@163.com<br>谢谢luoyanqing119
 
to: luoyanqing119<br>onyliu@126.com<br>也给我来份学习下
 
有一个DEMO,可能有些地方你很难看懂,我注解下明天再传给你(上班时间都比较忙,只能晚上搞了).
 
怎么用?不是说得很清楚了吗?<br>{<br>&nbsp; NOTE: This demo requires the ZLib units found in the extras directory on the<br>&nbsp; CD.<br><br>&nbsp; The Socket Server has the ability to install an interception COM object that<br>&nbsp; can be called whenever it receives or sends data. &nbsp;Using this feature, you<br>&nbsp; can encrypt or compress data using any method you wish. &nbsp;This demo uses the<br>&nbsp; ZLib compression units that ship on the CD to compress/uncompress all data<br>&nbsp; going over the wire.<br><br>&nbsp; To use this demo;<br>&nbsp; 1) Make sure you have copied the ZLib units from the CD to a directory and<br>&nbsp; &nbsp; &nbsp;have added that directory to this projects search path.<br>&nbsp; 2) Compile Intrcpt.dpr.<br>&nbsp; 3) Register Intrcpt.DLL using REGSVR32 or TREGSVR on both the client and the<br>&nbsp; &nbsp; &nbsp;server.<br>&nbsp; 4) On the Server: Bring up the properties for the Socket Server (right click<br>&nbsp; &nbsp; &nbsp;on the icon in the task bar and select properties) and put the GUID for<br>&nbsp; &nbsp; &nbsp;Intrcpt.DLL in the Interceptor GUID edit control. &nbsp;The GUID is defined<br>&nbsp; &nbsp; &nbsp;below as Class_DataCompressor.<br>&nbsp; 5) On the Client: Set the TSocketConnection.InterceptName property to<br>&nbsp; &nbsp; &nbsp;Intrcpt.DataCompressor. This will set the InterceptGUID property to the<br>&nbsp; &nbsp; &nbsp;Class_DataCompressor GUID. Recompile your client.<br>}<br><br><br>这种是方法是Delphi推荐的方法,它在SConnect中提供了DataIn和DataOut的接口。
 
非常感谢luoyanqing119,seawolf2000
 
交个朋友吧<br>我QQ156591927
 
to: luoyanqing119<br>gxf189@163.com<br>也给我来份学习下吧!<br>谢谢!!
 
请问luoyanqing119<br>哪个demo发了吗?<br>我的还没收到,麻烦你再发一下tosunmoon@163.com<br>或者加我QQ传<br>谢谢了
 
请问luoyanqing119<br>哪个demo已经发了吗?<br>我的还是没收到,麻烦你再发一下tosunmoon@163.com<br>谢谢了
 
后退
顶部