Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions content/enterprise-features/encryption-at-rest.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ desired key size):
```bash
tr -dc 'a-zA-Z0-9' < /dev/urandom | dd bs=1 count=32 of=enc_key_file
```

{{% notice "note" %}}
On a macOS you may have to use `LC_CTYPE=C; tr -dc 'a-zA-Z0-9' < /dev/urandom | dd bs=1 count=32 of=enc_key_file`. To view the key use `cat enc_key_file`.
{{% /notice %}}
Alternatively, you can use the `--vault` [superflag's]({{< relref "deploy/cli-command-reference.md" >}}) options to enable encryption, as [explained below](#example-using-dgraph-cli-with-hashicorp-vault-configuration).

## Turn on Encryption
Expand Down Expand Up @@ -71,7 +73,7 @@ To use [Hashicorp Vault](https://www.vaultproject.io/), meet the following prere
"cas": 0
},
"data": {
"enc_key": "1234567890123456"
"enc_key": "qIvHQBVUpzsOp74PmMJjHAOfwIA1e6zm%"
}
}
```
Expand Down