I was about to store the password in my Cocoa application in NSUserDefaults , but then I realized that it was stored in plain text.
NSUserDefaults
How to save credentials for Cocoa apps?
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.
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
Source: https://habr.com/ru/post/1413106/More articles:jQuery Hover Toggle Fix - jqueryThe mysqli extension is missing. Check your PHP configuration - mysqlDo long type names significantly affect performance? - java64-bit sharemem.pas / borlndmm.dll XE2 - 64bitOctave does not display the correct marker complexion - gnuplotUrllib2 returns HTML with new characters and tabs - pythonInvalid or incomplete object_id from notification table using FQL - androidWhat is the unit used for the duration of AnjLab SQL profiler - sqlHTTP API Request Rabbitmq UnAuthorized - restjquery ui selectable checkbox - jqueryAll Articles