# Decrypting your files

## Using your passphrase

Kryptor will convert your passphrase into the unique encryption key per file/directory used for encryption. For security reasons, this involves a slight delay.

You can either type your passphrase:

1. Interactively (**recommended**): you'll be asked to enter your passphrase and then to retype the passphrase for confirmation. The characters you type are hidden to prevent someone from seeing your passphrase and the length of the passphrase.
2. Non-interactively (**less secure**): this involves specifying your passphrase on the command line.

Here's an example using interactive passphrase entry:

```bash
$ kryptor -d -p file.txt.bin

Enter your passphrase:

Retype passphrase:

```

Here's an example using non-interactive passphrase entry:

```bash
$ kryptor -d -p:"CED<7q*uxx@4S=szftln3@co(" file.txt.bin
```

## Using your symmetric key

Kryptor will convert your symmetric key into the unique encryption key per file/directory used for encryption. Unlike using a passphrase, this involves no delay.

Here's an example:

```bash
$ kryptor -d -k PSK/I1SkTbgoylRxiW3w0wcYmovWTWgC54bPmpgsiQrgO3c= file.txt.bin
```

## Using your keyfile

Kryptor will convert the hash of the keyfile into the unique encryption key per file/directory used for encryption.

Here's an example of specifying a keyfile used alongside a passphrase:

```bash
$ kryptor -d -p -k "C:\Users\samuel-lucas6\Documents\keyfile.key" file.txt.bin
```

## Using your private key

Kryptor will convert your encryption private key into the unique encryption key per file/directory used for encryption.

You'll be asked to decrypt your private key using your passphrase. For security reasons, this involves a slight delay.

Here's an example of how to use your default encryption private key:

```bash
$ kryptor -d file.txt.bin

Enter your private key passphrase:

```

Here's an example of how to specify an encryption private key not stored in the [default folder](/tutorial/generating-a-new-key-pair.md):

```bash
$ kryptor -d -x:"C:\Users\samuel-lucas6\Documents\encryption.private" file.txt.bin

Enter your private key passphrase:

```


---

# 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://www.kryptor.co.uk/tutorial/decrypting-your-files.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.
