Security & Encryption
Advanced Keychain, CryptoKit, SSL Pinning, biometric auth, secure coding, ATS
1Which iOS mechanism should be used to securely store sensitive authentication tokens?
Which iOS mechanism should be used to securely store sensitive authentication tokens?
Odpowiedź
Keychain is iOS's native secure storage system, designed specifically for sensitive data. It automatically encrypts data and manages access according to defined control policies. UserDefaults should never be used for secrets as it stores data in plaintext. Keychain also offers advanced features like biometric access and secure iCloud synchronization.
2Which Keychain attribute ensures data remains inaccessible while the device is locked?
Which Keychain attribute ensures data remains inaccessible while the device is locked?
Odpowiedź
kSecAttrAccessibleWhenUnlocked ensures data can only be accessed when the device is unlocked. This provides protection even if Keychain is consulted via a background process. This value is recommended by Apple for sensitive tokens. Other options like WhenUnlockedThisDeviceOnly provide additional protection by preventing iCloud synchronization.
3Which CryptoKit class should be used for AES-256 symmetric encryption?
Which CryptoKit class should be used for AES-256 symmetric encryption?
Odpowiedź
SymmetricKey in CryptoKit manages symmetric keys while AES.GCM (Galois/Counter Mode) performs authenticated encryption. GCM is preferred as it provides both confidentiality and authentication, preventing manipulation attacks. This approach is more secure than ChaCha20Poly1305 in contexts not requiring extreme performance on older devices.
What is the main advantage of asymmetric encryption over symmetric encryption?
What is the fundamental difference between hashing and encryption in security?
+17 pytań z rozmów
Inne tematy rekrutacyjne iOS
Swift Basics
Swift Language Essentials
UIKit Fundamentals
UIViewController Lifecycle
UserDefaults & Keychain
Application Lifecycle
Auto Layout & Constraints
UITableView & UICollectionView
SwiftUI Basics
SwiftUI State Management
SwiftUI Navigation
Networking & URLSession
Codable & JSON Parsing
Core Data
Protocol Oriented Programming
MVVM Architecture
Push Notifications
Unit Testing & XCTest
UI Testing
Xcode & Build System
Swift Package Manager
Memory Management & ARC
Combine Framework
Concurrency & async/await
iOS Design Patterns
Performance Optimization
SwiftUI Advanced
iOS Application Architecture
Opanuj iOS na następną rozmowę
Uzyskaj dostęp do wszystkich pytań, flashcards, testów technicznych, ćwiczeń code review i symulatorów rozmów.
Zacznij za darmo