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

发布于 2024-10-08 17:36:00 字数 180 浏览 0 评论 0原文

在我扫描并找到我所在区域的网络后,我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

无妨# 2024-10-15 17:36:00

“您可以对包含明文密钥的配置文件(即存在受保护元素并设置为 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文