Blog | G5 Cyber Security

Offline App Authentication

TL;DR

Apps needing user logins without internet access require local authentication methods. Options include storing hashed passwords locally (less secure), using pre-shared keys, or employing a self-contained identity provider like WebAuthn with a locally managed key store.

1. Understanding the Challenge

Traditional app authentication relies on servers to verify usernames and passwords. When an internet connection isn’t available, this doesn’t work. You need solutions that operate entirely on the device.

2. Local Password Storage (Not Recommended)

This is the simplest but least secure option. You store a hash of the user’s password on the device.

Strongly advise against this method unless absolutely necessary and combined with other security measures.

3. Pre-Shared Keys

Suitable for apps where you control all devices (e.g., internal tools). Each user has a unique key pre-configured on their device.

4. WebAuthn (FIDO2) with Local Key Store

The most secure option for offline authentication, but more complex to implement.

5. Considerations for All Methods

Exit mobile version