Say I have an NSSecureTextField in my application. Is it okay for me to grab the password into an NSString variable (as I usually wanted) and pass it around my application code? Is it safe or do I need to somehow encrypt a string variable in the application code?
Also (and this is an absolutely critical part of my question): is it safe to pass the NSString password received from NSSecureTextField through NSPipe to standard NSTask input to provide a password for the command line? My main concern is that the OS will write the password somewhere, which would be horrible.
source
share