Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
iOS Authentication & Secure Storage: Swift Keychain CryptoKi
1 students

iOS Authentication & Secure Storage: Swift Keychain CryptoKi

Master iOS authentication, Keychain storage, CryptoKit, and Passkeys in Swift. Protect user data against real threats.
Created byACHRAF ER-RAYA
Last updated 9/2026
English

What you'll learn

  • Implement native Sign in with Apple and Passkeys in Swift, handling credential state changes and fallback mechanics securely.
  • Secure sensitive API tokens, keys, and user credentials inside the iOS Keychain behind Face ID and Touch ID biometric prompts.
  • Encrypt local app data using AES-GCM via Apple CryptoKit and manage automatic session timeouts with secure key derivation.
  • Harden iOS apps against tampering using DeviceCheck App Attest and mitigate man-in-the-middle attacks with SSL Certificate Pinning.

Course content

6 sections • 7 lectures • 1h 33m total length
  • Introduction18:10

Requirements

  • Intermediate knowledge of Swift and iOS development, Xcode 15+, and a basic understanding of REST APIs. An active Apple Developer account is recommended for testing Passkeys.

Description

This course contains the use of artificial intelligence.

Stop storing sensitive tokens in vulnerable locations. Security isn't an afterthought—it's a core requirement for modern iOS development. In this compact, high-impact course, you will learn how to implement enterprise-grade security and authentication mechanics in Swift from scratch.

From implementing modern, passwordless Passkey flows to securing offline data with hardware-backed encryption, this course gives you the exact code and architecture patterns used by senior iOS security engineers.

Who this course is for:

  • Intermediate iOS developers who want to master native security practices

  • Swift engineers looking to replace third-party auth SDKs with native solutions

  • Developers building fintech, healthcare, or privacy-focused iOS applications

  • Senior developers preparing their apps for rigorous security compliance audits

What you will learn:

  • Implement native Sign in with Apple and Passkey authentication workflows

  • Secure tokens, API keys, and sensitive credentials inside the iOS Keychain

  • Gate high-privilege app actions behind Face ID and Touch ID prompts

  • Encrypt sensitive user files using Apple CryptoKit and AES-GCM

  • Mitigate man-in-the-middle attacks using network TLS Certificate Pinning

  • Prevent unauthorized device access with DeviceCheck and App Attest APIs

  • Handle silent token refreshes and automatic session expiration safely

  • Audit existing iOS codebases for security vulnerabilities and data leaks

Requirements:

  • Intermediate understanding of Swift and SwiftUI or UIKit

  • Xcode 15 or later installed on a Mac

  • An active Apple Developer Account (required for testing Passkeys and App Attest)

Final Project Description: You will build "Vaultify"—a high-security financial document vault app. You will implement a complete authentication flow using Passkeys, lock user documents behind biometrics and CryptoKit encryption, and implement App Attest and SSL pinning to ensure all API calls originate from an untampered app binary on an uncompromised device.

Who this course is for:

  • Intermediate to advanced iOS developers, Swift engineers building fintech or privacy-focused apps, and developers looking to master native security practices without relying on heavy third-party SDKs.