How SpaceMoon protects your files

This page explains what SpaceMoon does, in plain words, and also what it cannot do. We would rather you know the limits than trust a promise that is too big.

In short

From your pattern to a key

You draw a pattern on a 5×5 grid, using at least 6 dots and no dot twice. SpaceMoon turns the pattern into a key with Argon2id, from libsodium (version 1.0.20 on Android).

How files are encrypted

Recovery phrase

Fingerprint

Fingerprint unlock is optional. Android checks the fingerprint, not SpaceMoon; the app never receives your fingerprint. A key in the Android Keystore that only works right after a strong biometric check unlocks the master key. If someone adds a new fingerprint to the phone, this key stops working and you must use your pattern again.

Backup file

Other protections in the app

Limits you should know

No app can protect against everything. These are the honest limits of SpaceMoon.

Simple patterns can be guessed

Short or common shapes (an L, a Z, a straight line) can be guessed by watching you, by smudges on the screen, or in a few tries. Real patterns are much easier to guess than the number of possible patterns suggests. Use more dots and more turns. The app warns you about very simple patterns.

How long guessing could take

Inside the app, each try takes about a second, and waits grow after 5 mistakes. But someone who has your backup file, or who has taken the device salt from a rooted phone, can guess on a computer instead, with no waits. Argon2id slows this down, but a pattern has far fewer possibilities than a long password. Rough estimates for one high-end graphics card (RTX 4090 class) at about 1,000 guesses per second:

What is guessedPossibilitiesTime, one graphics card
The 10,000 most common patterns104about 10 seconds
Every 6-dot pattern1.28 × 108about 1.5 days
Every 7-dot pattern2.42 × 109about 28 days
Every 8-dot pattern4.36 × 1010about 1.4 years
Recovery phrase (92 bits)4.95 × 1027about 1.6 × 1017 years

These are estimates, not measurements. Pattern counts are upper limits; real patterns are far fewer. More or faster hardware makes guessing faster in proportion.

Keep your backup file private

The backup file does not contain the device salt, so anyone who gets it can try patterns offline, as shown above. Store it only where you alone have access, such as your own cloud account, and use a longer pattern.

Rooted or infected phones

If someone can run code with the app's permissions (for example on a rooted phone, or with malware that has full control), they can unlock the device salt and guess offline. While the vault is open, keys are in memory and can be read with root access or a debugger. Some copies made inside Android and Flutter, and photos shown on screen, cannot be wiped from memory right away.

Some information is visible

The number of encrypted files in the app's storage, their rough sizes, and when they were created or changed are not hidden. Nor is the fact that SpaceMoon is installed.

The disguise only changes the home screen

Fingerprint is a weaker path

Fingerprint unlock skips Argon2id. Its strength depends on your phone's fingerprint sensor and Android Keystore. You can turn it off in Settings at any time.

Intruder photos

The app does not play a shutter sound, but phones sold in some countries, such as Japan and Korea, always play one. No photo is taken if another app is using the camera or there is no front camera. Until you unlock the first vault you created, the photos are sealed with an Android Keystore key.

Photo details

Locking is paused during system screens

While a system screen is open (permission request, delete confirmation, photo or file picker, fingerprint prompt) and while an import or export is running, the app waits to lock. If you have left the app, it locks 2 seconds after that ends.

Vaults share one device salt

All vaults on a phone use the same device salt. If someone has that salt, one guess tests every vault at once. The cost to attack a single vault is the same.

Things no app can stop

Someone watching you draw your pattern, or a camera filming your screen.

If you lose both, no one can help

If you lose both your pattern and your recovery phrase, no one can recover your files. Not even us.