开发者

Connecting to a WIFI Network via Cocoa

开发者 https://www.devze.com 2022-12-15 05:04 出处:网络
I\'m building an app for my school which enables the pupil to connect to the school\'s wifi network (wpa2). Into this app the password has to be hard coded because the technician doesn\'t want it reve

I'm building an app for my school which enables the pupil to connect to the school's wifi network (wpa2). Into this app the password has to be hard coded because the technician doesn't want it revealed.I've seen some examples such a开发者_JAVA技巧s XNetwork, but I'd rather use Cocoa than AppleScript.

Can someone suggest how this can be accomplished via Cocoa?

Thanks!


The right way is not to make this an app at all, but to put the network password into a keychain which you put on the system image you apply to all of the machines. Then it will take considerably more effort to retrieve than a hard-coded password inside of an application, probably less effort to set up, and definitely less effort to enforce.

Make sure you put it into its own keychain. If you put it into the user's keychain, they'll be able to look it up using Keychain Access. If you put it into its own keychain, you can give that keychain a different password, and then students will be unable to examine the network password because they don't know the keychain password.

0

精彩评论

暂无评论...
验证码 换一张
取 消