View Full Version : Any way to backup WEP keys?
mr_yellow
11th February 2008, 08:10 PM
Hey all,
I tried searching but couldn't find anything that could answer this question:
Is there some way to backup the WEP keys saved in the WiFi settings so that I can restore them after a ROM flash? Are they encrypted anywhere in the registry? Can they even be ported over from a different rom?
I have a bunch of Access Points saved that I no longer have the key for so losing them after a ROM upgrade is a PITA! =)
Thanks,
mr_yellow
16th June 2008, 08:43 PM
Quick bump for an old question...
Anyone here know of the answer?
Thanks,
PLUKK
16th June 2008, 09:09 PM
try opening up yer perfered notes app and typing them in and saving to storage card...thats what i do...or you could just remember them all
l3v5y
16th June 2008, 09:26 PM
Quick bump for an old question...
Anyone here know of the answer?
Thanks,
There may be a way of using RapiConfig, but I think the keys are stored in encrypted format... Might be in the registry though...
chrisnash
16th June 2008, 09:56 PM
Found this the other day on a winmob blog. It might help:
Configuring WiFi connectivity via cab file
Wifi connectivity on supported Windows Mobile 5, 6 & 6.1 devices can use the CSP provided to configure the device automatically.
The XML:
<characteristic type="CM_WiFiEntries">
<characteristic type="Your SSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="Your SSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="Hidden" value="0"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="your network key"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
There are a couple of values that you will want to change to suit your network environment.
Firstly, DestID. This tells the device if this network is "Work Network" or "The Internet". The possible values are {436EF144-B4FB-4863-A041-8F905A62C572 for The Internet, or {A1182988-0D73-439e-87AD-2A5B369F808B} for Work Network.
Encryption can be one of the following values to suit your network:
0 = Encrypt using 802.11 wired equivalent privacy (WEP) key.
1 = No encryption.
4 = Encrypt using Temporal Key Integrity Protocol (TKIP) sequence counters.
6 = Encrypt using Advanced Encryption Standard (AES).
Authentication can be any of the following:
0 = Open Network
1 = Shared Network
3 = WPA
4 = WPA-PSK
5 = WPA-NONE
6 = WPA2
7 = WPA2-PSK
Put this into NOTEPAD. We cannot have any text formatting on this, so word is out of the question, just straight notepad.
Save this as _setup.xml from the notepad save as menu. If you can't save as xml, then change the file extension after you save it as a .txt.
The name of the file - _setup.xml is important.
You can change around the below instructions, but this should make it easier for people who are new to compiling cabs
1. Save your _setup.xml to a directory called C:\Cabs\ on your computer.
2. Now open up a command prompt window Start>Run>cmd.
3. Type cd C:\Cabs in the command prompt window
4. Type MakeCAB.exe /D COMPRESS=OFF _setup.xml Wifi.cab
Now you will have an Wifi.cab file in your C:\Cabs directory.
Launch this on your device and the settings will be provisioned.
The formatting of the script doesnt show up properly above so download the XML script below - just remove the .txt file extension.
starbase64
16th June 2008, 10:13 PM
Hi,
you can put the xml in your SDAutorun on SD Card (read more (http://forum.xda-developers.com/showthread.php?t=396943&highlight=autorun)).
wfg
starbase64
mr_yellow
16th June 2008, 10:53 PM
Thanks for the info! I was also able to find similar registry keys at:
HKEY_CURRENT_USER/Comm/EAPOL/Config/<SSID>
and
HKEY_LOCAL_MACHINE/Comm/ConnMgr/Providers/{9eefcedf-a6bc-4457-a8ae-fb664a196450}/<SSID>
But I didn't see any reg key that looked like it stored the WEP/WPA key.... Where is this WIFI.cab saving the WEP key?!?
l3v5y
16th June 2008, 10:55 PM
Thanks for the info! I was also able to find similar registry keys at:
HKEY_CURRENT_USER/Comm/EAPOL/Config/<SSID>
and
HKEY_LOCAL_MACHINE/Comm/ConnMgr/Providers/{9eefcedf-a6bc-4457-a8ae-fb664a196450}/<SSID>
But I didn't see any reg key that looked like it stored the WEP/WPA key.... Where is this WIFI.cab saving the WEP key?!?In an encrypted format...
mr_yellow
17th June 2008, 05:32 AM
Yeah, but where?... I'd be happy to save the encrypted keys so I can reimport them later... =)
shogunmark
17th June 2008, 07:15 AM
Yeah, but where?... I'd be happy to save the encrypted keys so I can reimport them later... =)
Read post #5, it tells you how to create an xml for reinstallation!!!! Its not telling you where to get the info, its an xml config file.
jldiablo
17th June 2008, 02:17 PM
what i do is just copy the key into a txt file and save it on SD card
shogunmark
1st July 2008, 07:36 PM
i have used the file included and even searched msdn, but i get error "Multiple root elements line 7 position 2"
<characteristic type="CM_WiFiEntries">
<characteristic type="MY ROUTER NAME HERE">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="MY ROUTER NAME HERE">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="Hidden" value="0"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="MY KEY HERE"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
Im sure its because of these:
<characteristic type="CM_WiFiEntries">
<characteristic type="Wi-Fi">
but not sure how to make this work. Anyone have any ideas?
mr_yellow
2nd July 2008, 10:46 PM
Read post #5, it tells you how to create an xml for reinstallation!!!! Its not telling you where to get the info, its an xml config file.
I didn't mean to be arguementative... I know what post #5 meant. The info is very helpful *if* i knew what the WEP keys were. However I no longer do. I just wanted the location of the encrypted keys in the registry (if it's even stored there) so I can save them, flash my rom, then restore them (if that's even possible since the encryption key might change after the ROM flash).
Thanks,
l3v5y
2nd July 2008, 10:48 PM
I didn't mean to be arguementative... I know what post #5 meant. The info is very helpful *if* i knew what the WEP keys were. However I no longer do. I just wanted the location of the encrypted keys in the registry (if it's even stored there) so I can save them, flash my rom, then restore them (if that's even possible since the encryption key might change after the ROM flash).
Thanks,
I don't think you can get the keys/encrypted versions back to a usable state... After all, that's the point of the encryption.
mr_yellow
2nd July 2008, 10:59 PM
I don't think you can get the keys/encrypted versions back to a usable state... After all, that's the point of the encryption.
Well, that's not totally true.. Even in it's encrypted form, it's still usable since it can still be decrypted by the OS when it's trying to connect to the wifi network. It's just encrypted to prevent human eyes from figuring out what the password is.
But back to my other point of whether moving the encrypted keys from one device to another (or one ROM to another) will work since the key itself might be different (or not)... I'm assuming it's keyed to some HW value (which in that case, moving the keys from one ROM to another ROM will be fine since hte HW is the same).
Knumb
1st January 2009, 08:13 PM
I did this and the cab was created but when I went to install, it says unsuccessful...any ideas....I am using SJ's newest rom....
Found this the other day on a winmob blog. It might help:
Configuring WiFi connectivity via cab file
Wifi connectivity on supported Windows Mobile 5, 6 & 6.1 devices can use the CSP provided to configure the device automatically.
The XML:
<characteristic type="CM_WiFiEntries">
<characteristic type="Your SSID">
<parm name="DestID" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
</characteristic>
</characteristic>
<characteristic type="Wi-Fi">
<characteristic type="access-point">
<characteristic type="Your SSID">
<parm name="DestId" value="{436EF144-B4FB-4863-A041-8F905A62C572}"/>
<parm name="Encryption" value="0"/>
<parm name="Authentication" value="0"/>
<parm name="Hidden" value="0"/>
<parm name="KeyProvided" value="0"/>
<parm name="NetworkKey" value="your network key"/>
<parm name="KeyIndex" value="1"/>
<parm name="Use8021x" value="0"/>
</characteristic>
</characteristic>
</characteristic>
There are a couple of values that you will want to change to suit your network environment.
Firstly, DestID. This tells the device if this network is "Work Network" or "The Internet". The possible values are {436EF144-B4FB-4863-A041-8F905A62C572 for The Internet, or {A1182988-0D73-439e-87AD-2A5B369F808B} for Work Network.
Encryption can be one of the following values to suit your network:
0 = Encrypt using 802.11 wired equivalent privacy (WEP) key.
1 = No encryption.
4 = Encrypt using Temporal Key Integrity Protocol (TKIP) sequence counters.
6 = Encrypt using Advanced Encryption Standard (AES).
Authentication can be any of the following:
0 = Open Network
1 = Shared Network
3 = WPA
4 = WPA-PSK
5 = WPA-NONE
6 = WPA2
7 = WPA2-PSK
Put this into NOTEPAD. We cannot have any text formatting on this, so word is out of the question, just straight notepad.
Save this as _setup.xml from the notepad save as menu. If you can't save as xml, then change the file extension after you save it as a .txt.
The name of the file - _setup.xml is important.
You can change around the below instructions, but this should make it easier for people who are new to compiling cabs
1. Save your _setup.xml to a directory called C:\Cabs\ on your computer.
2. Now open up a command prompt window Start>Run>cmd.
3. Type cd C:\Cabs in the command prompt window
4. Type MakeCAB.exe /D COMPRESS=OFF _setup.xml Wifi.cab
Now you will have an Wifi.cab file in your C:\Cabs directory.
Launch this on your device and the settings will be provisioned.
The formatting of the script doesnt show up properly above so download the XML script below - just remove the .txt file extension.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.