Write code that cannot be exploited, and use the security features of Mac OS X. Mac OS X provides a variety of security programming interfaces, including cryptographic services, the ability to read and verify certificates, a keychain for secure storage of passwords and cryptographic keys, a way to add a digital signature to data, and a function that returns cryptographically secure random numbers. In addition, Mac OS X provides programming interfaces to SSL/TLS that developers can use to transport data securely over a network.