简体   繁体   English

使用C#连接到安全的无线连接

[英]connect to secured wireless connection using c#

扫描并发现我要连接的区域内的网络后,我正在使用wlanApi类连接至无线连接,但始终会收到“配置文件xaml不正确”的异常,因此我尝试将所有连接类型都转换为xaml,我发现了它们但是问题出在密码密钥中,它无法理解,所以我保留了它,但是在配置文件xaml中对其进行了加密,因此我希望WEP加密代码可以从原始密钥生成配置文件xaml中的密钥材料吗?

"You can call WlanSetProfile on a profile that contains a plaintext key (that is, a profile with the protected element present and set to FALSE). Before the profile is saved in the profile store, the key material is automatically encrypted. When the profile is subsequently retrieved from the profile store by calling WlanGetProfile, the encrypted key material is returned." “您可以在包含明文密钥的配置文件(即存在受保护元素并设置为FALSE的配置文件)上调用WlanSetProfile。在将配置文件保存在配置文件存储中之前,密钥材料将自动加密。随后通过调用WlanGetProfile从配置文件存储中检索“加密”,然后返回加密的密钥材料。”

From this msdn api link , from a Google search 'cause it piqued my interest. 通过该msdn api链接 ,通过Google搜索,这引起了我的兴趣。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM