From 9129d20bcbb424784855f58fe71ee1f66564927b Mon Sep 17 00:00:00 2001 From: Richard Schneider Date: Sun, 17 Dec 2017 11:30:52 +1300 Subject: [PATCH] docs: correct hash name --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index de4b3330..5d90826f 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ The **key id** is the SHA-256 [multihash](https://github.com/multiformats/multih ### 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 ```js @@ -94,8 +94,8 @@ const defaultOptions = { dek: { keyLength: 512 / 8, iterationCount: 10000, - salt: 'you should override this value with a crypto secure random number', - hash: 'sha512' + salt: 'at least 16 characters long', + hash: 'sha2-512' } } ```