C# web services soap加密

duanlongk 2008-11-30 03:20:49
求教,(C#)web services 中 如何用soap加密
请大虾们慷慨解囊,贴出自己的秘籍(代码),小弟弟感激不尽
...全文
193 14 打赏 收藏 转发到动态 举报
写回复
用AI写文章
14 条回复
切换为时间正序
请发表友善的回复…
发表回复
booksky508 2008-12-22
  • 打赏
  • 举报
回复
简单点的,可以加个SoapHeader,把用户名,密码之类的验证信息加密后封进去,在服务器端再解密验证。
MSDN上有示例代码。
qibing_08 2008-12-22
  • 打赏
  • 举报
回复
用3DES吧 很简单只需配置文件
ggskay 2008-12-20
  • 打赏
  • 举报
回复
wse
fangzhou2008 2008-12-20
  • 打赏
  • 举报
回复
也在寻找呀,有了也给我发一份380066935@qq.com
bird1983 2008-12-18
  • 打赏
  • 举报
回复
7楼正解
jinjazz 2008-12-05
  • 打赏
  • 举报
回复
sopa是用来传输序列化的对象的不是用来加密的.
passover 2008-12-05
  • 打赏
  • 举报
回复
呵呵.方法还可以.....
much0726 2008-12-05
  • 打赏
  • 举报
回复
WSE
楼外楼 2008-12-03
  • 打赏
  • 举报
回复
用RSA加密数据吧,用MD5加密你的调用源标记,防止非允许的访问
hernmmy 2008-12-03
  • 打赏
  • 举报
回复
应用blowfish进行加、解密过程

  客户端的加密过程:

//Create and encrypt an AuthBundle.
AuthBundle aB = new AuthBundle(user, password);
try {
//Encrypt the auth bundle
(new BlowfishSealer()).seal(aB);
} catch(KeyNotFoundException knfe) {
...
}

  服务器端的解密过程:
...use the sealed bundle to logon to a chosen repository.
..
// Unseal the auth bundle if sealed.
if(authBundle.isSealed()) {
// Instantiate an unsealer proxy.
UnsealerProxy uP = new UnsealerProxy();
try {
// Attempt to unseal the bundle.
// The UnsealerProxy will delegate unsealing
// to a new instance of "my.magic.Unsealer"
uP.unseal(authBundle);
} catch(UnsealerNotFoundException unfe) {
throw new LogonException("Unable … unsealer.", unfe);
} catch(KeyNotFoundException knfe) {
throw new LogonException("Unable ….", knfe);
} catch(InvalidKeyClassException ikce) {
throw new LogonException("Invalid decryption...", ikce);
} catch(EncryptionException ee) {
throw new LogonException("An error ….", ee);
}
}
hernmmy 2008-12-01
  • 打赏
  • 举报
回复
Mark下
Josion 2008-12-01
  • 打赏
  • 举报
回复
飘过~~~~~~~
android2008 2008-11-30
  • 打赏
  • 举报
回复
友情up
yilanwuyu123 2008-11-30
  • 打赏
  • 举报
回复
mark

12,162

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 Web Services
社区管理员
  • Web Services社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧