SinRain::If not you,Who! » 日志 » MockBank Encryption Module
MockBank Encryption Module
Rain 发表于 2008-04-07 09:29:33
模式一:
压缩加密摘要
AnyFile.zip
3DES Algorithm
AnyFile.zip*
SHA-1 Algorithm. //get the file digest
|----- Trans the File
|----- Post the digest By HTTP/HTTPS
模式二:
处理xml over Http
sign=signManager( XmlFileHandle , AlgorithmName , PriKey );
出来一段签名 附加在xml转成string后的后面形成报文
直接POST过去。
验证签名
Reciver接收到Post之后,是一段String流 //调用String2XML方法讲所有报文( signature included )转化成XML文档
bool verify_status=sighmanager.check( XmlFileHandle , AlgorithmName , PubKey );
还有一些细节问题再补充。
模式三:
地址加密
/action/instId/yyyymmdd/ filename 用Base64加密
收藏:
QQ书签
del.icio.us
订阅:
Google
抓虾
