I have a modal view controller (B) that is presented by main view controller (A). B has a username and password field and a cancel and save button.
I'm currently using an unwind segue and public properties in B and according IBAction in A to pass data between the VCs. My approach is described here: http://pragmaticstudio.com/blog/2013/2/5/unwind-segues
A then puts the password in the keychain.
As this is sensitive data my question is: Is it safe to pass a password from B to A using public properties or should I handle putting the password in the keychain within B only?
Thanks and kind regards