# encrypt

Generate json wallet from private key

#### Usage

```
otcli wallet encrypt [options]
```

#### Options

<mark style="color:blue;">**--private-key**</mark> `required`                                                                                                             &#x20;

**0x string**

A raw 32-byte private key to encrypt as keystore. If not supplied, CLI will auto-generate a new private key and proceed to encrypt it.

***

<mark style="color:blue;">**--keystore-dir**</mark> `required`                                                                                                               &#x20;

**file path**

The path to the keystore file

***

<mark style="color:blue;">**--keystore-password**</mark> `optional`                                                                                                    &#x20;

**file path**

The path to the file containing the keystore password.

***

<mark style="color:blue;">**-h, --help**</mark>  `optional`                                                                                                                                    &#x20;

**flag**

Display help information for this command.&#x20;
