Diffie Hellman密钥交换 [英] Diffie Hellman key exchange

查看:138
本文介绍了Diffie Hellman密钥交换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我发现Microsoft最终在.net 3.5中实现了diffie-hellman.

是否可以通过此实现进行密钥交换?

我希望能够从密钥交换数据中解密机密信息.

然后,我想使用P和G参数 Wiki ... [ ]创建密钥交换.

我已经研究了一个小时,而msdn并没有对.net的这一部分进行充分解释:叹气:

有人有想法吗?:confused:

I''ve found out that Microsoft finally implemented diffie-hellman into .net 3.5

Is it possible to do a key exchange with this implementation?

I want to be able to decrypt the secret information from the key exchange data.

Then I want to use the P and G paremeters Wiki...[] to create a key exchange.

I''ve been looking into this for an hour and msdn isn''t quite explaining about this part of .net :sigh:

anybody an idea?:confused:

推荐答案

除了MSDN之外,您还尝试了其他任何方法吗?

我找到了这篇文章:椭圆曲线Diffie-Hellman [ ^ ]作为Google搜索".NET Diffie-Hellman."的第一个结果.

它看起来像在向您显示您的要求.

[回应]
.Net实现似乎没有直接公开g和p值,也似乎没有可以设置它们的值.虽然可以传递CngKey

要进行密钥交换,您只需传递彼此的PublicKey值即可.

如果想要真正的实现,则可能需要查看第三方dll,例如允许p和g的Chilkat.
Did you try anything besides MSDN?

I found this article: Elliptic Curve Diffie-Hellman[^] as the first result in a google search of ".NET Diffie-Hellman.

It looks like it shows you what you''re asking.

[Response]
The .Net implementation doesn''t appear to directly expose the g an p values, and it doesn''t appear that they can be set either. Though you can pass a CngKey

To do a key exchange, you simply pass each other''s PublicKey value.

If you want a true implementation, you may want to look at third-party dlls, such as Chilkat which allows for p and g.


这篇关于Diffie Hellman密钥交换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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