# Encryption

## Database encryption

### iOS Simulator

For Appfigurate Simulator, we rely upon you and your Mac's security to secure your app metadata records. The database that stores your app metadata records is not encrypted and is located in the host macOS filesystem:

> `~/Library/Application Support/Appfigurate/`

This allows us to share your app metadata records across all iOS Simulators where Appfigurate is installed.

### Physical devices

For device builds (installed from the [Apple App Store](https://apps.apple.com/us/app/appfigurate/id1332575368?ls=1)), the database that stores your app metadata records is encrypted on device.

### Real device cloud testing services

When pre-packaging the local database that stores your app metadata records into the Appfigurate iOS, the database is stored unencrypted in the resulting ipa or apk file. We recommend using wrong app metadata records for development in this scenario.

## App metadata exports & backup

Exported app metadata is secured using the following:

* Passphrase derivation function uses 12-rounds of bcrypt.
* App metadata blob is encrypted with AES256.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.electricbolt.co.nz/additional-reading/security/encryption.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
