mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-05-20 22:31:18 +00:00
docs: correct hash name
This commit is contained in:
parent
b4518e0ca8
commit
9129d20bcb
@ -83,7 +83,7 @@ The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multih
|
|||||||
|
|
||||||
### Private key storage
|
### Private key storage
|
||||||
|
|
||||||
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`.
|
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**.
|
||||||
|
|
||||||
The default options for generating the derived encryption key are in the `dek` object
|
The default options for generating the derived encryption key are in the `dek` object
|
||||||
```js
|
```js
|
||||||
@ -94,8 +94,8 @@ const defaultOptions = {
|
|||||||
dek: {
|
dek: {
|
||||||
keyLength: 512 / 8,
|
keyLength: 512 / 8,
|
||||||
iterationCount: 10000,
|
iterationCount: 10000,
|
||||||
salt: 'you should override this value with a crypto secure random number',
|
salt: 'at least 16 characters long',
|
||||||
hash: 'sha512'
|
hash: 'sha2-512'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user