Skip to content

Commit 9129d20

Browse files
docs: correct hash name
1 parent b4518e0 commit 9129d20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multih
8383

8484
### Private key storage
8585

86-
A private key is stored as an encrypted PKCS 8 structure in the PEM format. It is protected by a key generated from the key chain's *passPhrase* using **PBKDF2**. Its file extension is `.p8`.
86+
A private key is stored as an encrypted PKCS 8 structure in the PEM format. It is protected by a key generated from the key chain's *passPhrase* using **PBKDF2**.
8787

8888
The default options for generating the derived encryption key are in the `dek` object
8989
```js
@@ -94,8 +94,8 @@ const defaultOptions = {
9494
dek: {
9595
keyLength: 512 / 8,
9696
iterationCount: 10000,
97-
salt: 'you should override this value with a crypto secure random number',
98-
hash: 'sha512'
97+
salt: 'at least 16 characters long',
98+
hash: 'sha2-512'
9999
}
100100
}
101101
```

0 commit comments

Comments
 (0)