> For the complete documentation index, see [llms.txt](https://sixnetwork.gitbook.io/nft-gen-2-tech-doc/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sixnetwork.gitbook.io/nft-gen-2-tech-doc/getting-started/sdk-for-go/preparing-key-for-authentication.md).

# Preparing Key for Authentication

## From CLI

Use "sixd" CLI to export the key from your keyring

```bash
sixd keys export mykey
```

Passphrase is required to encrypt the exported private key

and after setup passphrase the information will look like this:

```bash
-----BEGIN TENDERMINT PRIVATE KEY-----
type: secp256k1
kdf: bcrypt
salt: 442D382328B89599F99DB688AF91B8BB

EThQx4G+uO2xehgIv0GwmhnCEIA/beeMVXLj0w6/x6Ryecdrkuu3yPzdvh+VX/Ac
UJigQWkwnVPH0xVU2AnFKN4f3cBT6D2ldNfAEQ8=
=WOlG
-----END TENDERMINT PRIVATE KEY-----
```

This is called an armored key and together with the passphrase are used in SIX Protocol Go SDK for authentication.

## From seed phrase

You can import your seed phrase into keyring:&#x20;

```bash
sixd keys add --recover <your-account-name>
```

After enter a bip39 mnemonic you can export by following the previous steps to get armored (encrypted) private file and passphrase for SDK of SIX Protocol Go version.
