Alex Rivera | Logout

password encryption in iphone apps

Asked 2008-10-10T02:34:01.743
9

I need to store the user's password in my iphone app.

When posting an app to the app store, I have to tell Apple if there's encryption in the app for export purposes.

I don't want my app to be restricted to US only, but I also don't want to store or send passwords over the net in clear text.

So basically the question is, can I encrypt passwords in a way that will not get my app restricted?

Edit
Report

1 Answer

5

Looks like the supplied crypt() function can be used for passwords:

This library (FreeSec 1.0) was developed outside the United States of America as an unencumbered replacement for the U.S.only libcrypt encryption library. Programs linked against the crypt() interface may be exported from the U.S.A. only if they use crypt() solely for authentica-tion authentication purposes and avoid use of the other programmer interfaces listed above. Special care has been taken in the library so that programs which only use the crypt() interface do not pull in the other components.

(from the iphone documentation for crypt(3))

answered 2008-10-10T02:46:13.293

Your Answer