From 659e167c068016ed095b767c447421115eaa782b Mon Sep 17 00:00:00 2001 From: Franck Royer Date: Fri, 27 Aug 2021 14:40:46 +1000 Subject: [PATCH] Mention CryptoSubtle for key storage/export --- guides/encrypt-messages-version-1.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/guides/encrypt-messages-version-1.md b/guides/encrypt-messages-version-1.md index eb4e7dc22e..95ac10ad01 100644 --- a/guides/encrypt-messages-version-1.md +++ b/guides/encrypt-messages-version-1.md @@ -23,7 +23,10 @@ This needs to be kept in mind for scalability and forward secrecy concerns: By using Waku Message Version 1, you will need to provide a way to your users to generate and store keys in a secure manner. Storing, backing up and recovering key is out of the scope of this guide. - +If key recovery is important for your dApp, then check out +[SubtleCrypto.wrapKey()(https://developer.mozilla.org/en-US/docs/Web/API/SubtleCrypto/wrapKey) which can be used to securely store or export private keys. + +An example to save and load a key pair in local storage, protected with a password, can be found in [Eth-PM](https://github.com/status-im/js-waku/blob/main/examples/eth-pm/src/key_pair_handling/key_pair_storage.ts). ## Which encryption method do I need?