如何使用C#中的ManagedWifi连接到未知的WPA-WPA2网络

时间:2016-11-26 07:06:50

标签: c# wifi

我想用AES加密和WPA2安全性连接我的网络。但是当我删除网络并尝试重新连接我的程序时,我失败了。我错过了什么?

<?php the_post_navigation
( 
    array(
        'prev_text'          => '<p>Previous:</p><p>%title</p>',
        'next_text'          => '<p>Next:</p><p>%title</p>'
    ) 
);

1 个答案:

答案 0 :(得分:0)

你说你

  

[...]想要使用AES加密和WPA2安全性连接我的网络。

无论如何,查看您的个人资料,您正在为WEP配置设备

<security>
  <authEncryption>
    <authentication>open</authentication>
    <encryption>WEP</encryption> <!-- see here -->
    <useOneX>false</useOneX>
  </authEncryption>
  <sharedKey>
    <keyType>networkKey</keyType>
    <protected>false</protected>
    <keyMaterial>**PASSWORD**</keyMaterial>
  </sharedKey>
  <keyIndex>0</keyIndex>
</security>

我已成功建立了具有以下配置的WPA2(PSK)连接

<security>
    <authEncryption>
        <authentication>WPA2PSK</authentication>
        <encryption>AES</encryption>
        <useOneX>false</useOneX>
    </authEncryption>
    <sharedKey>
        <keyType>passPhrase</keyType>
        <protected>false</protected>
        <keyMaterial>**PASSWORD**</keyMaterial>
    </sharedKey>
</security>
相关问题