---
name: "sq-autocrypt-encode-sender"
section: "1"
platform: "linux"
package: "sq"
version: "0.27.0-2+b1"
release: "Debian 12 (Bookworm)"
platforms: ["linux"]
url: "https://new.carta.tech/sq-autocrypt-encode-sender"
---

# sq-autocrypt-encode-sender(1)

Encodes a certificate into an Autocrypt header

## NAME

encode-sender - Encodes a certificate into an Autocrypt header

## SYNOPSIS

**encode-sender** \[**-o**\|**--output**\] \[**--email**\] \[**--prefer-encrypt**\] \[**-h**\|**--help**\] \[*FILE*\]

## DESCRIPTION

Encodes a certificate into an Autocrypt header

A certificate can be encoded and included in a header of an email message.  This command encodes the certificate, adds the senders email address (which must match the one used in the "From" header), and the senders "prefer-encrypt" state (see the Autocrypt spec for more information).

The converse operation is "sq autocrypt decode".

## OPTIONS

- **-o**, **--output**=*FILE*

  Writes to FILE or stdout if omitted

- **--email**=*ADDRESS*

  Sets the address \[default: primary userid\]

- **--prefer-encrypt**=*PREFER-ENCRYPT* \[default: nopreference\] \[possible values: nopreference, mutual\]

  Sets the prefer-encrypt attribute

- **-h**, **--help**

  Print help information

- \[*FILE*\]

  Reads from FILE or stdin if omitted

## EXAMPLES

 Encodes a certificate

```
 sq autocrypt encode-sender juliet.pgp
```

 Encodes a certificate with an explicit sender address

```
 sq autocrypt encode-sender --email juliet@example.org juliet.pgp
```

 Encodes a certificate while indicating the willingness to encrypt

```
 sq autocrypt encode-sender --prefer-encrypt mutual juliet.pgp
```

## SEE ALSO

For the full documentation see \<https://docs.sequoia-pgp.org/sq/\>.

[sq(1)](/sq/1.md) [sq-armor(1)](/sq-armor/1.md) [sq-autocrypt(1)](/sq-autocrypt/1.md) [sq-autocrypt-decode(1)](/sq-autocrypt-decode/1.md) [sq-certify(1)](/sq-certify/1.md) [sq-dearmor(1)](/sq-dearmor/1.md) [sq-decrypt(1)](/sq-decrypt/1.md) [sq-encrypt(1)](/sq-encrypt/1.md) [sq-inspect(1)](/sq-inspect/1.md) [sq-key(1)](/sq-key/1.md) [sq-keyring(1)](/sq-keyring/1.md) [sq-keyserver(1)](/sq-keyserver/1.md) [sq-packet(1)](/sq-packet/1.md) [sq-revoke(1)](/sq-revoke/1.md) [sq-sign(1)](/sq-sign/1.md) [sq-verify(1)](/sq-verify/1.md) [sq-wkd(1)](/sq-wkd/1.md)
