FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Does anyone know the Linksys Passphrase to WEP Key Algorithm





john2885
Does anyone know (or know of a website that shows) the Linksys algorithm for generating WEP key(s) from a passphrase? I would like to write a small application that will generate a 128-bit WEP key from a passphrase exactly the same way that Linksys wireless routers do.

Alternatively, a free wep key generator (from a passphrase) would also work. I haven't done a lot of searching yet for this. Everything I've seen so far is either commercial or simply provides a way to randomly generate a key (i.e. doesn't support supplying a passphrase).

Please note that I'm not looking for an academic discussion as to how weak WEP is or wheter WPA or some other wireless security is better or worse - I'm just looking for the algorithm.

Thanks.
john2885
I found the algorithm using the source code for the sourceforge.net project WIFI-BOX. It was in the wepkey.c file in the /release/src/router/shared directory.

If anyone is interested, here is the algorithm:

1. Concatenate the passphrase with itself until you hit 64 characters.
2. Return the first 26 characters of the MD5 hash of the string created in the first step.

That works for the first key. I thought I had the C code deciphered for the other 3 keys but so far it isn't working (I'm recoding in PHP and comparing to the output from my router). I'll post a reply if I can get the rest of them working. For everything I do, one key is good enough.
Related topics
Does anyone know how to get your site to appear higher ?
Nightwish... does anyone like it?
Does anyone know.....
Does anyone play StarCraft?
Croatia in panic: Bird Flue knocks on the door!!!
Does anyone use the new Joomla 1.1.x beta?
does anyone know the contact script and the comment pages
Does anyone like football?
Does anyone else like randomly Quoting shows & movies?
Does anyone want to travel? Where?
Does anyone try Adobe Acrobat 3D?
Does anyone know of a university near Austin that teaches...
Does anyone like Boxing
Does anyone know of a free secure-image servers for Paypal
Reply to topic    Frihost Forum Index -> Computers -> Software

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.