my app gives the possibility to store username and password.
for now i do that using UserDefaults.standard.set(pw,forKey: "password")
Is this safe or should i use something else or encrypt the pw somehow?
Asked
Active
Viewed 767 times
1
Ginso
- 757
- 13
- 31
-
I think NO. You can take a look at this post https://stackoverflow.com/questions/12525474/nsuserdefaults-or-keychain-is-better-to-save-username-and-password-in-iphone-app – trungduc Jul 19 '18 at 11:45
-
1If a password needs to be stored use the keychain, that is what it is for. – zaph Jul 19 '18 at 12:22