View Single Post
Posts: 540 | Thanked: 288 times | Joined on Sep 2009
#133
Originally Posted by hcm View Post
And should it be possible to activate WEP just by configuring a key in the backend script? I would like to try that also, because at least it would require a little more knowledge/software/criminal intend to break into my hotspot (my 3G volume is limited )
gc.set_string('/apps/mobilehotspot/encryption_algo', 'WEP')
gc.set_string('/apps/mobilehotspot/encryption_key', 'key bytes')

note that the encryption key here is the actual bytes of the key, hotspot_backend.py will take care of hex-encoding them for iwconfig.

Also note that hotsport_backend.py will padd the key with zeroes to get it to exactly 13 bytes (and in case your set key is longer than 13 bytes it will trim it down ot 13bytes). You can see the exact hex-encoded key in hotspot_backend.py output when it calls iwconfig.

Note that my Mac laptop refused to even see the N900 hotspot when encryption was enabled so it might be that this does not actually work even if from the device POV it seems to.

To disable/re-enable encryption you can just unset/set the encryption_algo config key.