使用 C# 连接到安全无线连接
在我扫描并找到我所在区域的网络后,我正在使用 wlanApi 类连接到无线连接,我想连接到它们,但总是收到异常“配置文件 xaml 不正确”,所以我尝试将所有连接类型获取到我找到的 xaml但问题在于密码密钥它无法理解它,我应该但它在配置文件 xaml 中加密,所以我希望 WEP 加密代码可以从原始密钥生成配置文件 xaml 中的密钥材料如何?
I am using wlanApi class to connect to wireless connection after I scanned and found networks in my area I want to connect to them but always I get exception "profile xaml is not correct" so I try to get all connection type to xaml I found them but the problem is in password key it can't understand it and I shold but it encrypted in the profile xaml so I want WEP encrpytion code can generate the keymaterial in profile xaml from the original key how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“您可以对包含明文密钥的配置文件(即存在受保护元素并设置为 FALSE 的配置文件)调用 WlanSetProfile。在将配置文件保存到配置文件存储中之前,密钥材料会自动加密。当配置文件随后通过调用 WlanGetProfile 从配置文件存储中检索,并返回加密的密钥材料。”
来自此 msdn api 链接,来自谷歌搜索,因为它激起了我的兴趣。
"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."
From this msdn api link, from a Google search 'cause it piqued my interest.