19. Using Keychain and Touch ID to Secure and Access Data

Securing sensitive user data is a critical and often-overlooked step of mobile development. The technology press is constantly plagued by stories of large companies storing password or credit-card information in plain text. Users put their trust in developers to treat sensitive information with the care and respect it deserves. This includes encrypting remote and local copies of that information to prevent unauthorized access. It is the duty of every developer to treat users’ data as they would like their own confidential information to be handled.

Apple has long provided a security framework called Keychain to store encrypted information on an iOS device. The Keychain also has several ...

Get Mastering iOS Frameworks: Beyond the Basics, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.