How to save password in Cocoa settings?

I was about to store the password in my Cocoa application in NSUserDefaults , but then I realized that it was stored in plain text.

How to save credentials for Cocoa apps?

+4
source share
2 answers

Passwords must be stored in the keychain. You should probably take a look at Keychain Key Programming Guide first. The keychain exists on the iOS and OS X platforms.

+6
source

First encrypt it with BCrypt.

I have an open BCrypt utility class if you're interested ...

http://www.jayfuerstenberg.com/blog/bcrypt-in-objective-c

+2
source

Source: https://habr.com/ru/post/1413106/


All Articles