Summary
Storing secret information securely in software is a difficult task to accomplish. In fact, it's impossible to achieve perfection with today's technology. To reduce the risk of compromising secret information, make sure you take advantage of the operating system security functionality and also make sure you store secret information only if you do have to. If you don't store secrets, they cannot be compromised. Determine a good enough solution based solely on the threats and data sensitivity.