# Security

## What are Passkeys?

Passkeys are comprised of two interconnected components: a public key shared with the intended website or app for authentication and a private key securely stored on your device. The encryption is designed to be irreversible, ensuring the utmost security and resilience against phishing attacks.&#x20;

Access to your passkey-protected accounts is impossible without possession of the passkeys and a method to authorize the storing device. This ensures that shared passkeys remain safeguarded, accessible only by those you explicitly trust.

## What about Private Keys?

Thanks to Turnkey's secure enclave technology, your generated wallet's private keys are NEVER exposed to Scarab's or our partner's servers. Private keys can only be viewed/exported by the owner, and are locked behind passkey authorization.


---

# 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://scarab.gitbook.io/scarab-docs/resources/security.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.
