Save username-password with NSUserDefault, how and how much safe?

后端 未结 4 1207
礼貌的吻别
礼貌的吻别 2020-12-19 15:58

I would save a couple of values (username-password) with NSUserDefault.

First: is there a way to save them together (like in an array for example)? Second: is it saf

4条回答
  •  无人及你
    2020-12-19 16:31

    you can use an NSDictionary or NSarray to save your values, and you should also encrypt your data because NSUserDefaults works like a plist which can be accessed by anyone

提交回复
热议问题