Skip to content

Commit f555e61

Browse files
authored
Merge pull request #396 from gyorokpeter/enc_iter
add note on iteration count
2 parents 0b0567a + 7540392 commit f555e61

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/basics/internal.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ loads and validates the master key into memory as the key to use when decrypting
478478
:fontawesome-solid-graduation-cap:
479479
[Create master key](../kb/dare.md#configuration)
480480

481+
!!! warning "Iteration count"
482+
483+
The iteration count of the key must be 50000, otherwise you will get an "Invalid password" error when trying to load the key.
484+
481485
Expect this call to take about 500 milliseconds to execute.
482486
It can be executed from handle 0 only.
483487

docs/kb/dare.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ OpenSSL uses a CSPRNG for its rand command. The master key can be generated usin
120120
$ openssl rand 32 | openssl aes-256-cbc -md SHA256 -salt -pbkdf2 -iter 50000 -out testkek.key # Prompts for the new password
121121
```
122122

123+
!!! warning "Iteration count"
124+
125+
The iteration count must be 50000, otherwise you will get an "Invalid password" error when trying to load the key.
126+
123127
!!! tip "Back up this key file and the associated password"
124128

125129
Back up this key file and the password to open it, but keep them separate and in a secure location – perhaps even deposit them in escrow for key recovery. If either of these is lost, any data encrypted using it will become inaccessible.

0 commit comments

Comments
 (0)