docs: correct hash name

This commit is contained in:
Richard Schneider 2017-12-17 11:30:52 +13:00
parent b4518e0ca8
commit 9129d20bcb

View File

@ -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'
} }
} }
``` ```