WEP-Key in the preferences.plist FILE ??
WEP-Key in the preferences.plist FILE ??
- Subject: WEP-Key in the preferences.plist FILE ??
- From: Halit Özüberk (ProDyne) <email@hidden>
- Date: Fri, 1 Jul 2005 17:52:26 +0200
- Thread-topic: WEP-Key in the preferences.plist FILE ??
//here is my WEPKEY Test - Code
void* keys[1];
void* values[1];
char mConst_m128WEPKey[50];
CWepKeyArray myWep;
myWep.setPassphrase("MYWEPKEYPASS");
memset(mConst_m128WEPKey,0,sizeof(mConst_m128WEPKey));
myWep.stringForStrongKey(mConst_m128WEPKey);
CFDataRef MyWepData;
MyWepData = CFDataCreate(NULL, (const unsigned char*)mConst_m128WEPKey,26/* strlen(mConst_m128WEPKey) */);
keys[0] = (void*) CFSTR("WEPKEY");
values[0] = (void*) MyWepData;
CFDictionaryRef theDict = CFDictionaryCreate(kCFAllocatorDefault,(const void**)keys,(const void**)values,1 , &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks);
CFMutableDictionaryRef theMutableDict = CFDictionaryCreateMutableCopy(NULL, CFDictionaryGetCount(theDict) , theDict);
CFPreferencesSetValue(CFSTR("MyWEPKEY"),theMutableDict, CFSTR("com.apple.MyWEPKEYTest"),kCFPreferencesCurrentUser,kCFPreferencesAnyHost);
CFPreferencesSynchronize(CFSTR("com.apple.MyWEPKEYTest") , kCFPreferencesCurrentUser, kCFPreferencesAnyHost);
if(MyWepData)
CFRelease(MyWepData);
if(theMutableDict)
CFRelease(theMutableDict);
if(theDict)
CFRelease(theDict);
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Result:
mConst_m128WEPKey = "fed04a20e75a89ad3c58987fd6";
in the com.apple.MyWEPKEYTest File:
WEPKEY Data <39616163 64633230 33626464 32336534 66306436 64376166 3939>
If I give this WEPKEY ("ed04a20e75a89ad3c58987fd6") over Systempreferences.
in the preferences.plist File:
AuthPassword Data <abfdcec1 0566abab ce900563 aba9ce94 0567abac ce910563 aba3ce9d 0563abff ce970561 abaece9c 053baba3 ce930564 abffce92 >
????????????????
I program a tool and this tool furnishes a network connection.
But I have problem with the WEPKey...
If I want to store a WEPKEY in the network connection for an Airport, it is stored always wrong.
I have looked with the preferences.plist file. There the WEPKEY as Data are stored.
If the WEPKEY are stored encrypted there...
If yes,
how they are encoded then and are stored there...
I do not make headway at all...
THANKS
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden