2
With no server and only in the browser I'm generating an a bip39 key and giving the user the mnemonic to store some place safe for restoring, I also want the user to be able to login with a password.
1) Could I encrypt the mnemonic with a password?
2) If I do encrypt the mnemonic, which algorithm should I use?
Jonas, thank you for your reply. Please can you help me understand the benefits of AES-256-CBC over AES-256-GCM? Specifically in relation to encrypting a mnemonic in the browser – Will-In-China – 2017-04-10T11:55:33.667
1That's a difficult question with probably multiple answers. GCM has serval advantages (HMAC) and some disadvantages (small IV) over CBC. It depends on your use-case. For purely disk encryption, CBC seems to be the most common choice. – Jonas Schnelli – 2017-04-10T12:01:03.783