> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codeant.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Swift hardcoded realm key

<AccordionGroup>
  <Accordion title="swift-hardcoded-realm-key">
    The application was observed to contain a hardcoded encryption key for use with the Realm database. An attacker that obtains this key via reverse engineering or access to source code will be able to re-use this key to encrypt or decrypt Realm data. Cryptographic keys should be unique, and randomly generated per user, per client.<br />**Likelihood**: LOW<br />**Confidence**: MEDIUM<br />**CWE**: <br />- CWE-321: Use of Hard-coded Cryptographic Key
    <br />**OWASP**: <br />- A02:2021 - Cryptographic Failures
  </Accordion>
</AccordionGroup>
