在WCF中拥有自定义加密? [英] Own custom encryption in WCF?

查看:96
本文介绍了在WCF中拥有自定义加密?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用C#构建一个WCF桌面客户端 - 服务器应用程序,我想配置WCF使用我自己的自定义加密。

我根本不想使用证书。 />
这可能吗?



我尝试过:



到目前为止我还没有在网上找到任何东西。

I'm building a WCF desktop client-server application in C# and I want to configure WCF to use my own custom encryption.
I don't want to use certificates at all.
Is this possible?

What I have tried:

I haven't found anything so far in the web.

推荐答案

我想你到目前为止还没有找到任何东西: 使用自定义加密令牌保护WCF服务 - chsakell的博客 [ ^ ]



I wonder that you "haven't found anything so far in the web": Secure WCF Services with custom encrypted tokens – chsakell's Blog[^]

引用:

虽然有些时候你不能或不想使用WCF安全可用选项,因此,您需要开发自己的身份验证逻辑,以符合您的业务需求。本文将向您展示如何使用自定义标头将加密信息从客户端传递到服务器,后者(服务器)解密并验证每个请求。

There are some times though where you cannot or don’t want to use WCF security available options and hence, you need to develop your own authentication logic accoarding to your business needs. This post will show you how to pass encrypted information from the client to server using a custom header, with the latter (server) decrypting and authenticating each request.





看看,它似乎就是你所需要的。



Take a look, it seems to be what you need.


这篇关于在WCF中拥有自定义加密?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆