Secure storage and transport
Match storage to sensitivity
CampusNotes stores a display preference, cached public course names and a short-lived access credential. The first two may belong in private app storage; a credential needs platform-protected secret handling. Avoid putting credentials in logs, exported files, URLs or ordinary preferences. Encryption at rest and transport encryption address different boundaries; neither authorizes a request.
Use platform key and secret facilities
Android Keystore protects cryptographic key material and can restrict key operations; hardware backing depends on the device and key configuration. It is not a general database for arbitrary tokens. A vetted Android design can encrypt app-private data using a managed Keystore key. Apple Keychain is intended for small sensitive items; access groups and accessibility classes must match the purpose. Choose backup, migration, user authentication and invalidation behavior deliberately.
Transport and server trust
Use HTTPS through maintained platform networking APIs with certificate and hostname checks. Android Network Security Configuration and Apple App Transport Security (ATS) express platform-specific transport constraints; ATS applies to supported networking APIs, not every arbitrary socket. The included XML fragment disallows cleartext for the modeled Android configuration. Test correct endpoints and failure of trust validation on an authorized fixture; do not replace validation with an accept-all callback.
Design for loss and renewal
A copied backup, a lost phone and an expired session are separate cases. Minimize local sensitive caches, define backup exclusions where appropriate, and have the server revoke or expire credentials. Key deletion may make ciphertext unusable but does not erase every other copy. Pinning, if justified by threat analysis, requires a managed rotation and recovery plan; it is not a universal substitute for normal certificate validation.
Practice selecting controls
Review the storage and transport cases in the lab. For each, identify the asset, the boundary, the expected denial behavior, evidence of secure defaults and evidence still missing. A label such as keystore or HTTPS in a design record is only a claim until verified in the target build. Next decide how enterprise policies can protect work data without overreaching into personal life.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Secure storage and transport — knowledge check
Review Mobile permissions, storage, transport, BYOD and verification.
What is Android Keystore intended to protect?
Which Apple facility is appropriate to evaluate for small sensitive items?
What should occur on certificate trust failure?
What does encryption at rest not establish?
An access credential expires. What matters?