Operating System - Linux
1823143 Members
3442 Online
109647 Solutions
New Discussion юеВ

howto set WEP encryption on wireless card using passphrase ?

 
'chris'
Super Advisor

howto set WEP encryption on wireless card using passphrase ?

hi

I can set WEP encryption on my wireless card with following command:

iwconfig eth1 essid MYWLANID key 5B3F929A17C4C659FD081C9D07

but how it works with a passphrase ?

is it passphrase supported ?

kind regards
chris
4 REPLIES 4
'chris'
Super Advisor

Re: howto set WEP encryption on wireless card using passphrase ?

man iwconfig says:

........................
key/enc[ryption]
Used to manipulate encryption or scrambling keys
and encryption mode.
To set the current encryption key, just enter the
key in hex digits as XXXX-XXXX-XXXX-XXXX or
XXXXXXXX. To set a key other than the current key,
prepend or append [index] to the key itself (this
won't change which is the active key). You can also
enter the key as an ASCII string by using the s:
prefix. Passphrase is currently not supported.
To change which key is the current active key, just
enter [index] (without entering any key value).
........................


Passphrase is currently not supported !
'chris'
Super Advisor

Re: howto set WEP encryption on wireless card using passphrase ?

I found out:

with

# iwconfig wlan0 essid key:mypassphrase

it works well !

greetings
chris
Thomas Bianco
Honored Contributor

Re: howto set WEP encryption on wireless card using passphrase ?

There are two accepted methods to change "passphrase" into keys. 1) Direct ASCII/hex conversion 2) Cryptographic padding.

1) Direct ASCII/hex conversion yield passwords that are EXACTLY 13 (128bit) or 5 (48 bit). They support any valid single byte ASCII symbol. Cisco, Broadcomm, and apple use this.

2) Cryptographic padding uses a predictable cryptographic function to hash the passphrase into a hex key of appropriate length. They accept any length password (to up an arbitrary max) and usually only support English Alphanumeric + punctuation. Linksys uses this.

I assume this is the first method, as there would be no changes required to the key ("a"=0x41).
There have been Innumerable people who have helped me. Of course, I've managed to piss most of them off.
'chris'
Super Advisor

Re: howto set WEP encryption on wireless card using passphrase ?

hi

I found out, with:

iwconfig eth1 essid test key s:passphrase

it works well !

regards
chris